Issue #29011: Fix an important omission by adding Deque to the typing module.

This commit is contained in:
Raymond Hettinger 2017-01-16 22:42:37 -08:00
parent a105dd3dc0
commit 80490525e0
4 changed files with 41 additions and 4 deletions

View file

@ -557,6 +557,10 @@ The module defines the following classes, functions and decorators:
As a shorthand for this type, :class:`bytes` can be used to
annotate arguments of any of the types mentioned above.
.. class:: Deque(deque, MutableSequence[T])
A generic version of :class:`collections.deque`.
.. class:: List(list, MutableSequence[T])
Generic version of :class:`list`.