File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -414,23 +414,23 @@ main:4: error: Argument 2 to "f" has incompatible type "*List[A]"; expected "B"
414
414
main:5: error: Argument 3 to "f" has incompatible type "*List[A]"; expected "B"
415
415
main:6: error: Argument 1 to "f" has incompatible type "*Tuple[A, A, B]"; expected "Optional[B]"
416
416
417
- [case testVarArgsAfterKeywordArgInCall1-skip ]
417
+ [case testVarArgsAfterKeywordArgInCall1]
418
418
# see: mypy issue #2729
419
419
def f(x: int, y: str) -> None: pass
420
420
f(x=1, *[2])
421
421
[builtins fixtures/list.pyi]
422
422
[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"
425
425
426
- [case testVarArgsAfterKeywordArgInCall2-skip ]
426
+ [case testVarArgsAfterKeywordArgInCall2]
427
427
# see: mypy issue #2729
428
428
def f(x: int, y: str) -> None: pass
429
429
f(y='x', *[1])
430
430
[builtins fixtures/list.pyi]
431
431
[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"
434
434
435
435
[case testVarArgsAfterKeywordArgInCall3]
436
436
def f(x: int, y: str) -> None: pass
You can’t perform that action at this time.
0 commit comments