Annotate known magic-method return types (#9131)

This commit is contained in:
Nikita Sobolev
2022-11-08 21:28:42 +03:00
committed by GitHub
parent c0e9038f0d
commit 62a6c3d616
87 changed files with 172 additions and 172 deletions
+4 -4
View File
@@ -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)
+2 -2
View File
@@ -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): ...