@@ -3609,7 +3609,7 @@ test(C) # E: Argument 1 to "test" has incompatible type "type[C]"; expected "P"
36093609 # N: Expected: \
36103610 # N: def __call__(x: int, y: int) -> Any \
36113611 # N: Got: \
3612- # N: def __init__ (x: int, y: str) -> C \
3612+ # N: def C (x: int, y: str) -> C \
36133613 # N: "P.__call__" has type "def __call__(self, x: int, y: int) -> Any"
36143614
36153615[case testProtocolClassObjectPureCallback]
@@ -3631,7 +3631,7 @@ test(C) # E: Argument 1 to "test" has incompatible type "type[C]"; expected "P"
36313631 # N: Expected: \
36323632 # N: def __call__(x: int, y: int) -> Any \
36333633 # N: Got: \
3634- # N: def __init__ (x: int, y: str) -> C \
3634+ # N: def C (x: int, y: str) -> C \
36353635 # N: "P.__call__" has type "def __call__(self, x: int, y: int) -> Any"
36363636[builtins fixtures/type.pyi]
36373637
@@ -3654,7 +3654,7 @@ p: P = C # E: Incompatible types in assignment (expression has type "type[C]",
36543654 # N: Expected: \
36553655 # N: def __call__(app: int) -> Callable[[str], None] \
36563656 # N: Got: \
3657- # N: def __init__ (app: str) -> C \
3657+ # N: def C (app: str) -> C \
36583658 # N: "P.__call__" has type "def __call__(self, app: int) -> Callable[[str], None]"
36593659
36603660[builtins fixtures/type.pyi]
@@ -3890,7 +3890,7 @@ other_flag = False
38903890def update() -> str: ...
38913891[builtins fixtures/module.pyi]
38923892
3893- [case testModuleAsProtocolImplementationClassObject_no_parallel ]
3893+ [case testModuleAsProtocolImplementationClassObject ]
38943894import runner
38953895import bad_runner
38963896from typing import Callable, Protocol
@@ -3909,7 +3909,7 @@ run(bad_runner) # E: Argument 1 to "run" has incompatible type Module; expected
39093909 # N: Expected: \
39103910 # N: def (int, /) -> Result \
39113911 # N: Got: \
3912- # N: def __init__ (arg: str) -> Run
3912+ # N: def Run (arg: str) -> Run
39133913
39143914[file runner.py]
39153915class Run:
@@ -3922,7 +3922,7 @@ class Run:
39223922 def __init__(self, arg: str) -> None: ...
39233923[builtins fixtures/module.pyi]
39243924
3925- [case testModuleAsProtocolImplementationTypeAlias_no_parallel ]
3925+ [case testModuleAsProtocolImplementationTypeAlias ]
39263926import runner
39273927import bad_runner
39283928from typing import Callable, Protocol
@@ -3941,7 +3941,7 @@ run(bad_runner) # E: Argument 1 to "run" has incompatible type Module; expected
39413941 # N: Expected: \
39423942 # N: def (int, /) -> Result \
39433943 # N: Got: \
3944- # N: def __init__ (arg: str) -> Run
3944+ # N: def Run (arg: str) -> Run
39453945
39463946[file runner.py]
39473947class Run:
0 commit comments