Skip to content

Commit

Permalink
Update pylint/checkers/refactoring/recommendation_checker.py
Browse files Browse the repository at this point in the history
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
  • Loading branch information
yushao2 and DanielNoord committed Nov 19, 2021
1 parent 12e118e commit 362e280
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pylint/checkers/refactoring/recommendation_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def _check_consider_iterating_dictionary(self, node: nodes.Call) -> None:
and any(
op
for op, comparator in comp_ancestor.ops
if op in ["in", "not in"]
if op in {"in", "not in"}
and (comparator in node.node_ancestors() or comparator is node)
)
):
Expand Down

0 comments on commit 362e280

Please sign in to comment.