From fab334ef57b6ae60077927753eef9cf6d9e73f00 Mon Sep 17 00:00:00 2001 From: Carlo Goetz Date: Fri, 17 Jul 2026 16:38:30 +0200 Subject: [PATCH] Revert "fix(python): pass all init args to super.init (fixes b042 linter) (#279)" This reverts commit 13cbeefcc16382820170cf6c1648a3922e662073. --- 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 342abd8..1594a2d 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, path_to_item, valid_classes, key_type) + super(ApiTypeError, self).__init__(full_msg) 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, path_to_item) + super(ApiValueError, self).__init__(full_msg) 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, path_to_item) + super(ApiAttributeError, self).__init__(full_msg) 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, path_to_item) + super(ApiKeyError, self).__init__(full_msg) class ApiException(OpenApiException):