Skip to content

Commit 1a7ac4f

Browse files
authored
Update check-overloading.test
1 parent a927084 commit 1a7ac4f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test-data/unit/check-overloading.test

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)