We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a09eae commit f1fc94bCopy full SHA for f1fc94b
1 file changed
languages/python/templates/api_client.mustache
@@ -398,7 +398,7 @@ class ApiClient:
398
# and attributes which value is not None.
399
# Convert attribute name to json key in
400
# model definition for request.
401
- if hasattr(obj, 'to_dict') and callable(getattr(obj, 'to_dict')):
+ if hasattr(obj, 'to_dict') and callable(getattr(obj, 'to_dict')): # noqa: B009
402
obj_dict = obj.to_dict()
403
else:
404
obj_dict = obj.__dict__
0 commit comments