File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 2727
2828# List of files that contain test case descriptions.
2929files = [
30- 'check-varargs.test' ,
3130]
3231fast_parser_files = [
3332 'check-basic.test' ,
7372 'check-tuples.test' ,
7473 'check-expressions.test' ,
7574 'check-generic-subtyping.test' ,
75+ 'check-varargs.test' ,
7676]
7777
7878files .extend (fast_parser_files )
Original file line number Diff line number Diff line change @@ -381,15 +381,17 @@ main:4: error: Argument 2 to "f" has incompatible type *List[A]; expected "B"
381381main:5: error: Argument 3 to "f" has incompatible type *List[A]; expected "B"
382382main:6: error: Argument 1 to "f" has incompatible type *"Tuple[A, A, B]"; expected "B"
383383
384- [case testVarArgsAfterKeywordArgInCall1]
384+ [case testVarArgsAfterKeywordArgInCall1-skip]
385+ # see: mypy issue #2729
385386def f(x: int, y: str) -> None: pass
386387f(x=1, *[2])
387388[builtins fixtures/list.pyi]
388389[out]
389390main:2: error: "f" gets multiple values for keyword argument "x"
390391main:2: error: Argument 2 to "f" has incompatible type *List[int]; expected "str"
391392
392- [case testVarArgsAfterKeywordArgInCall2]
393+ [case testVarArgsAfterKeywordArgInCall2-skip]
394+ # see: mypy issue #2729
393395def f(x: int, y: str) -> None: pass
394396f(y='x', *[1])
395397[builtins fixtures/list.pyi]
You can’t perform that action at this time.
0 commit comments