Skip to content

Commit e0b71dc

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
1 parent 60834f3 commit e0b71dc

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

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)