mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-19 18:31:14 +08:00
Added class super to builtins (#867)
This commit is contained in:
committed by
Łukasz Langa
parent
1d1a2e458c
commit
025f31dcc9
@@ -205,6 +205,12 @@ class complex(SupportsAbs[float]):
|
||||
def __hash__(self) -> int: ...
|
||||
def __nonzero__(self) -> bool: ...
|
||||
|
||||
class super(object):
|
||||
@overload
|
||||
def __init__(self, t: Any, obj: Any) -> None: ...
|
||||
@overload
|
||||
def __init__(self, t: Any) -> None: ...
|
||||
|
||||
class basestring(metaclass=ABCMeta): ...
|
||||
|
||||
class unicode(basestring, Sequence[unicode]):
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user