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

View File

@@ -38,7 +38,7 @@ class WordsetDict(MutableMapping[Any, Any]):
def __setitem__(self, key, value) -> None: ...
def __delitem__(self, key) -> None: ...
def __iter__(self): ...
def __len__(self): ...
def __len__(self) -> int: ...
def __contains__(self, key): ...
default_wordsets: Any

View File

@@ -40,7 +40,7 @@ rounds_cost_values: Any
class SequenceMixin:
def __getitem__(self, idx): ...
def __iter__(self): ...
def __len__(self): ...
def __len__(self) -> int: ...
def __eq__(self, other): ...
def __ne__(self, other): ...

View File

@@ -160,7 +160,7 @@ class PrefixWrapper:
def ident_values(self): ...
def __dir__(self): ...
def __getattr__(self, attr): ...
def __setattr__(self, attr, value): ...
def __setattr__(self, attr, value) -> None: ...
def using(self, **kwds): ...
def needs_update(self, hash, **kwds): ...
def identify(self, hash): ...