mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Issue #29011: Fix an important omission by adding Deque to the typing module.
This commit is contained in:
parent
a105dd3dc0
commit
80490525e0
4 changed files with 41 additions and 4 deletions
|
@ -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`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue