mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-25 12:26:44 +08:00
@@ -85,8 +85,7 @@ class object:
|
||||
__dict__: Dict[str, Any]
|
||||
__slots__: Union[str, Iterable[str]]
|
||||
__module__: str
|
||||
if sys.version_info >= (3, 6):
|
||||
__annotations__: Dict[str, Any]
|
||||
__annotations__: Dict[str, Any]
|
||||
@property
|
||||
def __class__(self: _T) -> Type[_T]: ...
|
||||
@__class__.setter
|
||||
@@ -106,8 +105,7 @@ class object:
|
||||
def __reduce__(self) -> Union[str, Tuple[Any, ...]]: ...
|
||||
def __reduce_ex__(self, protocol: int) -> Union[str, Tuple[Any, ...]]: ...
|
||||
def __dir__(self) -> Iterable[str]: ...
|
||||
if sys.version_info >= (3, 6):
|
||||
def __init_subclass__(cls) -> None: ...
|
||||
def __init_subclass__(cls) -> None: ...
|
||||
|
||||
class staticmethod(object): # Special, only valid as a decorator.
|
||||
__func__: Callable[..., Any]
|
||||
@@ -422,7 +420,7 @@ class bytes(ByteString):
|
||||
def find(self, sub: Union[bytes, int], start: Optional[int] = ..., end: Optional[int] = ...) -> int: ...
|
||||
if sys.version_info >= (3, 8):
|
||||
def hex(self, sep: Union[str, bytes] = ..., bytes_per_sep: int = ...) -> str: ...
|
||||
elif sys.version_info >= (3, 5):
|
||||
else:
|
||||
def hex(self) -> str: ...
|
||||
def index(self, sub: Union[bytes, int], start: Optional[int] = ..., end: Optional[int] = ...) -> int: ...
|
||||
def isalnum(self) -> bool: ...
|
||||
@@ -478,8 +476,7 @@ class bytes(ByteString):
|
||||
def __add__(self, s: bytes) -> bytes: ...
|
||||
def __mul__(self, n: int) -> bytes: ...
|
||||
def __rmul__(self, n: int) -> bytes: ...
|
||||
if sys.version_info >= (3, 5):
|
||||
def __mod__(self, value: Any) -> bytes: ...
|
||||
def __mod__(self, value: Any) -> bytes: ...
|
||||
# Incompatible with Sequence.__contains__
|
||||
def __contains__(self, o: Union[int, bytes]) -> bool: ... # type: ignore
|
||||
def __eq__(self, x: object) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user