Skip to content

Commit f2c130b

Browse files
committed
Fallout: error reporting gets reordered
1 parent a2f6aa2 commit f2c130b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test-data/unit/check-parameter-specification.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1345,8 +1345,8 @@ from typing import Callable, ParamSpec
13451345
P1 = ParamSpec('P1')
13461346
P2 = ParamSpec('P2')
13471347

1348-
def f0(f: Callable[P1, int], *args: P1.args, **kwargs: P2.kwargs): ... # E: ParamSpec "P2" is unbound \
1349-
# E: ParamSpec must have "*args" typed as "P1.args" and "**kwargs" typed as "P1.kwargs"
1348+
def f0(f: Callable[P1, int], *args: P1.args, **kwargs: P2.kwargs): ... # E: ParamSpec must have "*args" typed as "P1.args" and "**kwargs" typed as "P1.kwargs" \
1349+
# E: ParamSpec "P2" is unbound
13501350

13511351
def f1(*args: P1.args): ... # E: ParamSpec "P1" is unbound
13521352
def f2(**kwargs: P1.kwargs): ... # E: ParamSpec "P1" is unbound

0 commit comments

Comments
 (0)