mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-17 13:59:45 +08:00
Annotate known magic-method return types (#9131)
This commit is contained in:
@@ -16,7 +16,7 @@ class Alias:
|
||||
class LocaleDataDict(MutableMapping[Any, Any]):
|
||||
base: Any
|
||||
def __init__(self, data, base: Any | None = ...) -> None: ...
|
||||
def __len__(self): ...
|
||||
def __len__(self) -> int: ...
|
||||
def __iter__(self): ...
|
||||
def __getitem__(self, key): ...
|
||||
def __setitem__(self, key, value) -> None: ...
|
||||
|
||||
@@ -81,7 +81,7 @@ class Catalog:
|
||||
@property
|
||||
def plural_forms(self): ...
|
||||
def __contains__(self, id): ...
|
||||
def __len__(self): ...
|
||||
def __len__(self) -> int: ...
|
||||
def __iter__(self): ...
|
||||
def __delitem__(self, id) -> None: ...
|
||||
def __getitem__(self, id): ...
|
||||
|
||||
@@ -23,7 +23,7 @@ class LazyProxy:
|
||||
def __bool__(self) -> bool: ...
|
||||
def __dir__(self): ...
|
||||
def __iter__(self): ...
|
||||
def __len__(self): ...
|
||||
def __len__(self) -> int: ...
|
||||
def __add__(self, other): ...
|
||||
def __radd__(self, other): ...
|
||||
def __mod__(self, other): ...
|
||||
|
||||
Reference in New Issue
Block a user