summaryrefslogtreecommitdiffstats
path: root/Lib/typing.py
diff options
context:
space:
mode:
authorIsmo Toijala <ismo.toijala@gmail.com>2018-12-02 15:53:14 (GMT)
committerIvan Levkivskyi <levkivskyi@gmail.com>2018-12-02 15:53:14 (GMT)
commit68b56d02ef20479b87c65e523cf3dec1b7b77d40 (patch)
tree603411399ae708ad25ecba472c402837ae40ccdd /Lib/typing.py
parent32bc11c33cf5ccea165b5f4ac3799f02fdf9c76a (diff)
downloadcpython-68b56d02ef20479b87c65e523cf3dec1b7b77d40.zip
cpython-68b56d02ef20479b87c65e523cf3dec1b7b77d40.tar.gz
cpython-68b56d02ef20479b87c65e523cf3dec1b7b77d40.tar.bz2
bpo-35341: Add generic version of OrderedDict to typing (GH-10850)
Diffstat (limited to 'Lib/typing.py')
-rw-r--r--Lib/typing.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/typing.py b/Lib/typing.py
index 4f9e045..3243e2a 100644
--- a/Lib/typing.py
+++ b/Lib/typing.py
@@ -1241,6 +1241,7 @@ ContextManager = _alias(contextlib.AbstractContextManager, T_co)
AsyncContextManager = _alias(contextlib.AbstractAsyncContextManager, T_co)
Dict = _alias(dict, (KT, VT), inst=False)
DefaultDict = _alias(collections.defaultdict, (KT, VT))
+OrderedDict = _alias(collections.OrderedDict, (KT, VT))
Counter = _alias(collections.Counter, T)
ChainMap = _alias(collections.ChainMap, (KT, VT))
Generator = _alias(collections.abc.Generator, (T_co, T_contra, V_co))