mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-20 04:37:04 +08:00
remove "return" statements from builtins.pyi (#986)
Type checkers shouldn't care that these methods are returning the same object.
This commit is contained in:
1 parent
155fdd0cd4
commit
555f45b876
1 file changed
+2
-2
@@ -131,7 +131,7 @@ class int(SupportsInt, SupportsFloat, SupportsAbs[int]):
|
||||
|
||||
def __str__(self) -> str: ...
|
||||
def __float__(self) -> float: ...
|
||||
def __int__(self) -> int: return self
|
||||
def __int__(self) -> int: ...
|
||||
def __abs__(self) -> int: ...
|
||||
def __hash__(self) -> int: ...
|
||||
def __bool__(self) -> bool: ...
|
||||
@@ -282,7 +282,7 @@ class str(Sequence[str]):
|
||||
def __len__(self) -> int: ...
|
||||
def __contains__(self, s: object) -> bool: ...
|
||||
def __iter__(self) -> Iterator[str]: ...
|
||||
def __str__(self) -> str: return self
|
||||
def __str__(self) -> str: ...
|
||||
def __repr__(self) -> str: ...
|
||||
def __int__(self) -> int: ...
|
||||
def __float__(self) -> float: ...
|
||||
|
||||
Reference in new issue
Block a user