@@ -3492,8 +3492,8 @@ c.a # E: "C" has no attribute "a"
34923492C('', '')
34933493C('') # E: No overload variant of "C" matches argument type "str" \
34943494 # N: Possible overload variants: \
3495- # N: def C(cls, foo: int) -> C \
3496- # N: def C(cls, x: str, y: str) -> C
3495+ # N: def C(foo: int) -> C \
3496+ # N: def C(x: str, y: str) -> C
34973497[builtins fixtures/__new__.pyi]
34983498
34993499
@@ -3922,8 +3922,8 @@ u = new(User)
39223922[out]
39233923tmp/foo.pyi:17: error: No overload variant of "User" matches argument type "str"
39243924tmp/foo.pyi:17: note: Possible overload variants:
3925- tmp/foo.pyi:17: note: def User(self ) -> U
3926- tmp/foo.pyi:17: note: def User(self, arg: int) -> U
3925+ tmp/foo.pyi:17: note: def User() -> U
3926+ tmp/foo.pyi:17: note: def User(arg: int) -> U
39273927tmp/foo.pyi:18: error: Too many arguments for "foo" of "User"
39283928
39293929[case testTypeUsingTypeCInUpperBound]
@@ -8517,7 +8517,7 @@ class Child(Parent):
85178517 return val
85188518 def bar(self, val: str) -> str: # E: Signature of "bar" incompatible with supertype "Parent" \
85198519 # N: Superclass: \
8520- # N: def bar(self ) -> bar \
8520+ # N: def bar() -> bar \
85218521 # N: Subclass: \
85228522 # N: def bar(self, val: str) -> str
85238523 return val
0 commit comments