Skip to content

Commit

Permalink
Missed some () when removing a pylint2 compat shim
Browse files Browse the repository at this point in the history
  • Loading branch information
carlio committed Mar 25, 2022
1 parent d5299a4 commit 633fed8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pylint_django/augmentations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ def ignore_import_warnings_for_related_fields(orig_method, self, node):

new_things = {}

for name, stmts in consumer.to_consume.items:
for name, stmts in consumer.to_consume.items():
if isinstance(stmts[0], ImportFrom):
if any(n[0] in ("ForeignKey", "OneToOneField") for n in stmts[0].names):
continue
Expand Down

0 comments on commit 633fed8

Please sign in to comment.