mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-18 07:44:13 +08:00
add (overwrite with) mypy stubs, if available
This commit is contained in:
11
stdlib/2.7/UserDict.pyi
Normal file
11
stdlib/2.7/UserDict.pyi
Normal file
@@ -0,0 +1,11 @@
|
||||
from typing import Dict, Generic, Mapping, TypeVar
|
||||
|
||||
_KT = TypeVar('_KT')
|
||||
_VT = TypeVar('_VT')
|
||||
|
||||
class UserDict(Dict[_KT, _VT], Generic[_KT, _VT]):
|
||||
data = ... # type: Mapping[_KT, _VT]
|
||||
|
||||
def __init__(self, initialdata: Mapping[_KT, _VT] = None) -> None: ...
|
||||
|
||||
# TODO: DictMixin
|
||||
Reference in New Issue
Block a user