add Counter, Deque, ChainMap (#928)

This commit is contained in:
Jelle Zijlstra
2017-02-11 10:52:09 -08:00
committed by Guido van Rossum
parent e80b25d1be
commit a778704b30
2 changed files with 6 additions and 0 deletions

View File

@@ -30,6 +30,8 @@ List = TypeAlias(object)
Dict = TypeAlias(object)
DefaultDict = TypeAlias(object)
Set = TypeAlias(object)
Counter = TypeAlias(object)
Deque = TypeAlias(object)
# Predefined type variables.
AnyStr = TypeVar('AnyStr', str, unicode)

View File

@@ -32,6 +32,10 @@ List = TypeAlias(object)
Dict = TypeAlias(object)
DefaultDict = TypeAlias(object)
Set = TypeAlias(object)
Counter = TypeAlias(object)
Deque = TypeAlias(object)
if sys.version_info >= (3, 3):
ChainMap = TypeAlias(object)
# Predefined type variables.
AnyStr = TypeVar('AnyStr', str, bytes)