Skip to content

Commit 1ebaf3c

Browse files
committed
Update test
1 parent 4179e8b commit 1ebaf3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test-data/unit/check-tuples.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,8 +1440,8 @@ t[y:] # E: Slice index must be an integer, SupportsIndex or None
14401440

14411441
[case testTupleSliceStepZeroNoCrash]
14421442
# This was crashing: https://github.com/python/mypy/issues/18062
1443-
# TODO: emit better error when 0 is used for step
1444-
()[::0] # E: Ambiguous slice of a variadic tuple
1443+
()[::0] # E: Ambiguous slice of a variadic tuple \
1444+
# E: Slice step cannot be 0
14451445
[builtins fixtures/tuple.pyi]
14461446

14471447
[case testInferTupleTypeFallbackAgainstInstance]

0 commit comments

Comments
 (0)