Skip to content

Commit

Permalink
Fix int(Union[str, int]) (#1551)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sterbic authored and JelleZijlstra committed Sep 23, 2017
1 parent d753315 commit 1f867d8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions stdlib/3/builtins.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ class super:

class int(SupportsInt, SupportsFloat, SupportsAbs[int]):
@overload
def __init__(self, x: SupportsInt = ...) -> None: ...
def __init__(self, x: Union[str, bytes, SupportsInt] = ...) -> None: ...
@overload
def __init__(self, x: Union[str, bytes], base: int = ...) -> None: ...
def __init__(self, x: Union[str, bytes], base: int) -> None: ...

def bit_length(self) -> int: ...
def to_bytes(self, length: int, byteorder: str, *, signed: bool = ...) -> bytes: ...
Expand Down Expand Up @@ -305,8 +305,6 @@ class str(Sequence[str]):
def __iter__(self) -> Iterator[str]: ...
def __str__(self) -> str: ...
def __repr__(self) -> str: ...
def __int__(self) -> int: ...
def __float__(self) -> float: ...
def __hash__(self) -> int: ...

class bytes(ByteString):
Expand Down

0 comments on commit 1f867d8

Please sign in to comment.