File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4347,7 +4347,7 @@ class Wrapper2:
43474347 @staticmethod
43484348 def foo(x: int) -> int: ...
43494349 @overload
4350- def foo(x: str) -> str: ... # E: Self argument missing for a non-static method (or an invalid type for self)
4350+ def foo(x: str) -> str: ... # E: self parameter missing for a non-static method (or an invalid type for self)
43514351 @staticmethod
43524352 def foo(x): pass
43534353
@@ -4358,7 +4358,7 @@ class Wrapper3:
43584358 @overload
43594359 @staticmethod
43604360 def foo(x: str) -> str: ...
4361- def foo(x: Union[int, str]): pass # E: Self argument missing for a non-static method (or an invalid type for self)
4361+ def foo(x: Union[int, str]): pass # E: self parameter missing for a non-static method (or an invalid type for self)
43624362[builtins fixtures/staticmethod.pyi]
43634363
43644364[case testOverloadWithSwappedDecorators2]
@@ -4394,7 +4394,7 @@ class Wrapper3:
43944394 def foo(x: int) -> int: ...
43954395
43964396 @overload
4397- def foo(x: str) -> str: ... # E: Self argument missing for a non-static method (or an invalid type for self)
4397+ def foo(x: str) -> str: ... # E: self parameter missing for a non-static method (or an invalid type for self)
43984398
43994399 @staticmethod
44004400 def foo(x): pass
You can’t perform that action at this time.
0 commit comments