mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
12 lines
286 B
Python
12 lines
286 B
Python
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
|