Add OrderedDict to typing_extensions (#5345)

This commit is contained in:
James Morris
2021-05-06 20:23:35 -04:00
committed by GitHub
parent 7619a8fb46
commit 5f252e54a0

View File

@@ -22,6 +22,7 @@ from typing import (
TypeVar,
Union,
ValuesView,
_Alias,
overload as overload,
)
@@ -68,6 +69,8 @@ class _TypedDict(Mapping[str, object], metaclass=abc.ABCMeta):
# TypedDict is a (non-subscriptable) special form.
TypedDict: object = ...
OrderedDict = _Alias()
if sys.version_info >= (3, 3):
from typing import ChainMap as ChainMap