Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 16, 2024
1 parent ebab020 commit 31c80ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion taggit/managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def _to_tag_model_instances(self, tags, tag_kwargs):
tag_objs = set()

for t in tags:
if (hasattr(t, 'first') and isinstance(t.first(), self.through.tag_model())):
if hasattr(t, "first") and isinstance(t.first(), self.through.tag_model()):
tag_objs.add(t.first())
elif isinstance(t, self.through.tag_model()):
tag_objs.add(t)
Expand Down

0 comments on commit 31c80ff

Please sign in to comment.