mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-27 20:12:21 +08:00
Annotate known magic-method return types (#9131)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
Reference in New Issue
Block a user