Add UserDict attribute data for Python 3 (#1863)

This commit is contained in:
Rhys Parry
2018-02-09 07:55:58 -08:00
committed by Guido van Rossum
parent ed9d08e93b
commit 6b82088e20

View File

@@ -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: ...