@@ -592,7 +592,7 @@ def f2(c: Callable[P, R]) -> Callable[Concatenate[int, P], R]:
592592f2(lambda x: 42)(42, x=42)
593593[builtins fixtures/paramspec.pyi]
594594[out]
595- main:10: error: invalid syntax; you likely need to run mypy using Python 3.8 or newer
595+ main:10: error: Invalid syntax; you likely need to run mypy using Python 3.8 or newer
596596[out version>=3.8]
597597main:17: error: Incompatible return value type (got "Callable[[Arg(int, 'x'), **P], R]", expected "Callable[[int, **P], R]")
598598main:17: note: This is likely because "result" has named arguments: "x". Consider marking them positional-only
@@ -621,7 +621,7 @@ def f2(c: Callable[P, R]) -> Callable[Concatenate[int, P], R]:
621621f2(lambda x: 42)(42, x=42)
622622[builtins fixtures/paramspec.pyi]
623623[out]
624- main:11: error: invalid syntax; you likely need to run mypy using Python 3.8 or newer
624+ main:11: error: Invalid syntax; you likely need to run mypy using Python 3.8 or newer
625625[out version>=3.8]
626626
627627[case testParamSpecConcatenateWithTypeVar]
@@ -662,7 +662,7 @@ reveal_type(abc)
662662bar(abc)
663663[builtins fixtures/paramspec.pyi]
664664[out]
665- main:13: error: invalid syntax; you likely need to run mypy using Python 3.8 or newer
665+ main:13: error: Invalid syntax; you likely need to run mypy using Python 3.8 or newer
666666[out version>=3.8]
667667main:16: note: Revealed type is "__main__.Foo[[builtins.int, b: builtins.str]]"
668668
0 commit comments