mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-22 20:01:29 +08:00
Add UserDict attribute data for Python 3 (#1863)
This commit is contained in:
committed by
Guido van Rossum
parent
ed9d08e93b
commit
6b82088e20
@@ -62,6 +62,7 @@ else:
|
||||
_UserDictT = TypeVar('_UserDictT', bound=UserDict)
|
||||
|
||||
class UserDict(MutableMapping[_KT, _VT]):
|
||||
data = ... # type: Mapping[_KT, _VT]
|
||||
def __len__(self) -> int: ...
|
||||
def __getitem__(self, key: _KT) -> _VT: ...
|
||||
def __setitem__(self, key: _KT, item: _VT) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user