Skip to content

Commit a8cadc5

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
1 parent 31c736c commit a8cadc5

3 files changed

Lines changed: 11 additions & 9 deletions

File tree

tests/test_visitors/test_ast/test_builtins/test_assign/test_multiple_variables_initialization.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ def test_correct_assignments(
4040
tree = parse_ast_tree(code)
4141

4242
visitor = MultipleVariablesInitializationVisitor(
43-
default_options, tree=tree,
43+
default_options,
44+
tree=tree,
4445
)
4546
visitor.run()
4647

@@ -65,7 +66,8 @@ def test_multiple_variables_initialization(
6566
tree = parse_ast_tree(code)
6667

6768
visitor = MultipleVariablesInitializationVisitor(
68-
default_options, tree=tree,
69+
default_options,
70+
tree=tree,
6971
)
7072
visitor.run()
7173

tests/test_visitors/test_tokenize/test_subscripts/test_redundant_trailing_slice.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@
2222
'a[1:4]',
2323
'a[1:]',
2424
'a[:4]',
25-
'a[::]', # caught by NonStrictSliceOperationsViolation
25+
'a[::]', # caught by NonStrictSliceOperationsViolation
2626
'a[1:4:5]',
2727
'a[1:4:None]',
2828
'a[1]',
29-
'a[1:4:1]', # caught by RedundantSubscriptViolation, not ours
30-
'a[b[1:4:5]]', # nested valid slice
31-
'a[b[1:4:]]', # nested invalid — should flag inner
32-
'a[{1: 2}]', # dict literal inside subscript
33-
'a[(1, 2)]', # tuple inside subscript
29+
'a[1:4:1]', # caught by RedundantSubscriptViolation, not ours
30+
'a[b[1:4:5]]', # nested valid slice
31+
'a[b[1:4:]]', # nested invalid — should flag inner
32+
'a[{1: 2}]', # dict literal inside subscript
33+
'a[(1, 2)]', # tuple inside subscript
3434
'a[lambda x: x]', # lambda inside subscript
3535
]
3636

wemake_python_styleguide/visitors/tokenize/subscripts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import tokenize
2-
from typing import ClassVar, Final, TypedDict, final
2+
from typing import Final, TypedDict, final
33

44
from wemake_python_styleguide.violations import consistency
55
from wemake_python_styleguide.visitors.base import BaseTokenVisitor

0 commit comments

Comments
 (0)