Skip to content

Commit 5a700ef

Browse files
fix(py) ignore linter warning in template (#254)
1 parent 0a75c08 commit 5a700ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

languages/python/templates/api_client.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ class ApiClient:
394394
# and attributes which value is not None.
395395
# Convert attribute name to json key in
396396
# model definition for request.
397-
if hasattr(obj, 'to_dict') and callable(getattr(obj, 'to_dict')):
397+
if hasattr(obj, 'to_dict') and callable(getattr(obj, 'to_dict')): # noqa: B009
398398
obj_dict = obj.to_dict()
399399
else:
400400
obj_dict = obj.__dict__

0 commit comments

Comments
 (0)