Skip to content

Commit 4ddc8fb

Browse files
authored
Unskip two tests in check-varargs.test (#11418)
refs #2729
1 parent 28d57b1 commit 4ddc8fb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test-data/unit/check-varargs.test

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -414,23 +414,23 @@ main:4: error: Argument 2 to "f" has incompatible type "*List[A]"; expected "B"
414414
main:5: error: Argument 3 to "f" has incompatible type "*List[A]"; expected "B"
415415
main:6: error: Argument 1 to "f" has incompatible type "*Tuple[A, A, B]"; expected "Optional[B]"
416416

417-
[case testVarArgsAfterKeywordArgInCall1-skip]
417+
[case testVarArgsAfterKeywordArgInCall1]
418418
# see: mypy issue #2729
419419
def f(x: int, y: str) -> None: pass
420420
f(x=1, *[2])
421421
[builtins fixtures/list.pyi]
422422
[out]
423-
main:2: error: "f" gets multiple values for keyword argument "x"
424-
main:2: error: Argument 2 to "f" has incompatible type *List[int]; expected "str"
423+
main:3: error: "f" gets multiple values for keyword argument "x"
424+
main:3: error: Argument 1 to "f" has incompatible type "*List[int]"; expected "str"
425425

426-
[case testVarArgsAfterKeywordArgInCall2-skip]
426+
[case testVarArgsAfterKeywordArgInCall2]
427427
# see: mypy issue #2729
428428
def f(x: int, y: str) -> None: pass
429429
f(y='x', *[1])
430430
[builtins fixtures/list.pyi]
431431
[out]
432-
main:2: error: "f" gets multiple values for keyword argument "y"
433-
main:2: error: Argument 2 to "f" has incompatible type *List[int]; expected "str"
432+
main:3: error: "f" gets multiple values for keyword argument "y"
433+
main:3: error: Argument 1 to "f" has incompatible type "*List[int]"; expected "str"
434434

435435
[case testVarArgsAfterKeywordArgInCall3]
436436
def f(x: int, y: str) -> None: pass

0 commit comments

Comments
 (0)