From 75a9a724cda145a7a49421005b637eda181b56c8 Mon Sep 17 00:00:00 2001 From: Carlo Goetz Date: Thu, 9 Jul 2026 17:27:08 +0200 Subject: [PATCH] fix(python): pass all init args to super.init (fixes b042 linter) --- languages/python/templates/exceptions.mustache | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/languages/python/templates/exceptions.mustache b/languages/python/templates/exceptions.mustache index 1594a2d..342abd8 100644 --- a/languages/python/templates/exceptions.mustache +++ b/languages/python/templates/exceptions.mustache @@ -36,7 +36,7 @@ class ApiTypeError(OpenApiException, TypeError): full_msg = msg if path_to_item: full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) - super(ApiTypeError, self).__init__(full_msg) + super(ApiTypeError, self).__init__(full_msg, path_to_item, valid_classes, key_type) class ApiValueError(OpenApiException, ValueError): @@ -54,7 +54,7 @@ class ApiValueError(OpenApiException, ValueError): full_msg = msg if path_to_item: full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) - super(ApiValueError, self).__init__(full_msg) + super(ApiValueError, self).__init__(full_msg, path_to_item) class ApiAttributeError(OpenApiException, AttributeError): @@ -73,7 +73,7 @@ class ApiAttributeError(OpenApiException, AttributeError): full_msg = msg if path_to_item: full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) - super(ApiAttributeError, self).__init__(full_msg) + super(ApiAttributeError, self).__init__(full_msg, path_to_item) class ApiKeyError(OpenApiException, KeyError): @@ -90,7 +90,7 @@ class ApiKeyError(OpenApiException, KeyError): full_msg = msg if path_to_item: full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) - super(ApiKeyError, self).__init__(full_msg) + super(ApiKeyError, self).__init__(full_msg, path_to_item) class ApiException(OpenApiException):