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