mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-18 06:19:47 +08:00
Annotate known magic-method return types (#9131)
This commit is contained in:
@@ -151,7 +151,7 @@ class Column:
|
||||
def __getstate__(self): ...
|
||||
def __gt__(self, __other): ...
|
||||
def __le__(self, __other): ...
|
||||
def __len__(self): ...
|
||||
def __len__(self) -> int: ...
|
||||
def __lt__(self, __other): ...
|
||||
def __ne__(self, __other): ...
|
||||
def __setstate__(self, state): ...
|
||||
@@ -295,9 +295,9 @@ class Notify:
|
||||
def __ge__(self, __other): ...
|
||||
def __getitem__(self, __index): ...
|
||||
def __gt__(self, __other): ...
|
||||
def __hash__(self): ...
|
||||
def __hash__(self) -> int: ...
|
||||
def __le__(self, __other): ...
|
||||
def __len__(self): ...
|
||||
def __len__(self) -> int: ...
|
||||
def __lt__(self, __other): ...
|
||||
def __ne__(self, __other): ...
|
||||
|
||||
@@ -355,7 +355,7 @@ class Xid:
|
||||
def __init__(self, *args, **kwargs) -> None: ...
|
||||
def from_string(self, *args, **kwargs): ...
|
||||
def __getitem__(self, __index): ...
|
||||
def __len__(self): ...
|
||||
def __len__(self) -> int: ...
|
||||
|
||||
_T_cur = TypeVar("_T_cur", bound=cursor)
|
||||
|
||||
|
||||
@@ -17,10 +17,10 @@ class Range:
|
||||
@property
|
||||
def upper_inc(self): ...
|
||||
def __contains__(self, x): ...
|
||||
def __bool__(self): ...
|
||||
def __bool__(self) -> bool: ...
|
||||
def __eq__(self, other): ...
|
||||
def __ne__(self, other): ...
|
||||
def __hash__(self): ...
|
||||
def __hash__(self) -> int: ...
|
||||
def __lt__(self, other): ...
|
||||
def __le__(self, other): ...
|
||||
def __gt__(self, other): ...
|
||||
|
||||
Reference in New Issue
Block a user