Added class super to builtins (#867)

This commit is contained in:
Andrey Vlasovskikh
2017-01-26 22:53:59 +03:00
committed by Łukasz Langa
parent 1d1a2e458c
commit 025f31dcc9
2 changed files with 14 additions and 0 deletions

View File

@@ -72,6 +72,14 @@ class type:
# implementation seems to be returning a list.
def mro(self) -> List[type]: ...
class super(object):
@overload
def __init__(self, t: Any, obj: Any) -> None: ...
@overload
def __init__(self, t: Any) -> None: ...
@overload
def __init__(self) -> None: ...
class int(SupportsInt, SupportsFloat, SupportsAbs[int]):
def __init__(self, x: Union[SupportsInt, str, bytes] = ..., base: int = ...) -> None: ...
def bit_length(self) -> int: ...