diff --git a/languages/python/templates/api_client.mustache b/languages/python/templates/api_client.mustache index 64ac142..cc1f748 100644 --- a/languages/python/templates/api_client.mustache +++ b/languages/python/templates/api_client.mustache @@ -394,7 +394,7 @@ class ApiClient: # and attributes which value is not None. # Convert attribute name to json key in # model definition for request. - if hasattr(obj, 'to_dict') and callable(getattr(obj, 'to_dict')): + if hasattr(obj, 'to_dict') and callable(getattr(obj, 'to_dict')): # noqa: B009 obj_dict = obj.to_dict() else: obj_dict = obj.__dict__