Skip to content

Commit

Permalink
Fix ruff linting error (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
protoroto authored Aug 22, 2023
1 parent 833d7c8 commit 5513882
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changes/134.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix ruff linting error
2 changes: 1 addition & 1 deletion taiga/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def parse(cls, requester, entry):
"""
Turns a JSON object into a model instance.
"""
if type(entry) is not dict:
if not isinstance(entry, dict):
return entry
for key_to_parse, cls_to_parse in cls.parser.items():
if key_to_parse in entry:
Expand Down

0 comments on commit 5513882

Please sign in to comment.