Skip to content

Commit 43dce52

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 7076fe0 commit 43dce52

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pylint/checkers/refactoring/refactoring_checker.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1980,10 +1980,7 @@ def _check_unnecessary_list_index_lookup(
19801980
):
19811981
return
19821982

1983-
if (
1984-
not isinstance(node.target, nodes.Tuple)
1985-
or len(node.target.elts) < 2
1986-
):
1983+
if not isinstance(node.target, nodes.Tuple) or len(node.target.elts) < 2:
19871984
# enumerate() result is being assigned without destructuring
19881985
return
19891986

0 commit comments

Comments
 (0)