Lines Matching refs:collections
90 from collections.abc import Sequence
201 from collections.abc import Callable
241 from collections.abc import Mapping, Sequence
251 from collections.abc import Sequence
297 from collections.abc import Iterable
328 from collections.abc import Sized
338 from collections.abc import Mapping
352 from collections.abc import Iterable
358 from collections.abc import Iterable
505 :class:`~collections.abc.Iterable`. The problem with this approach is that a class had
510 from collections.abc import Sized, Iterable, Iterator
523 from collections.abc import Iterator, Iterable
699 :class:`collections.abc.Callable`.
710 :class:`collections.abc.Callable` now supports ``[]``. See :pep:`585` and
738 from collections.abc import Callable
1135 from collections.abc import Callable
1267 in :mod:`collections.abc` such as :class:`~collections.abc.Iterable`. For example::
1294 Typed version of :func:`collections.namedtuple`.
1304 Employee = collections.namedtuple('Employee', ['name', 'id'])
1414 Generic concrete collections
1476 Corresponding to types in :mod:`collections` argument
1479 .. class:: DefaultDict(collections.defaultdict, MutableMapping[KT, VT])
1481 A generic version of :class:`collections.defaultdict`.
1486 :class:`collections.defaultdict` now supports ``[]``. See :pep:`585` and
1489 .. class:: OrderedDict(collections.OrderedDict, MutableMapping[KT, VT])
1491 A generic version of :class:`collections.OrderedDict`.
1496 :class:`collections.OrderedDict` now supports ``[]``. See :pep:`585` and
1499 .. class:: ChainMap(collections.ChainMap, MutableMapping[KT, VT])
1501 A generic version of :class:`collections.ChainMap`.
1507 :class:`collections.ChainMap` now supports ``[]``. See :pep:`585` and
1510 .. class:: Counter(collections.Counter, Dict[T, int])
1512 A generic version of :class:`collections.Counter`.
1518 :class:`collections.Counter` now supports ``[]``. See :pep:`585` and
1523 A generic version of :class:`collections.deque`.
1529 :class:`collections.deque` now supports ``[]``. See :pep:`585` and
1583 Corresponding to collections in :mod:`collections.abc`
1588 A generic version of :class:`collections.abc.Set`.
1591 :class:`collections.abc.Set` now supports ``[]``. See :pep:`585` and
1596 A generic version of :class:`collections.abc.ByteString`.
1605 :class:`collections.abc.ByteString` now supports ``[]``. See :pep:`585`
1610 A generic version of :class:`collections.abc.Collection`
1615 :class:`collections.abc.Collection` now supports ``[]``. See :pep:`585`
1620 A generic version of :class:`collections.abc.Container`.
1623 :class:`collections.abc.Container` now supports ``[]``. See :pep:`585`
1628 A generic version of :class:`collections.abc.ItemsView`.
1631 :class:`collections.abc.ItemsView` now supports ``[]``. See :pep:`585`
1636 A generic version of :class:`collections.abc.KeysView`.
1639 :class:`collections.abc.KeysView` now supports ``[]``. See :pep:`585`
1644 A generic version of :class:`collections.abc.Mapping`.
1651 :class:`collections.abc.Mapping` now supports ``[]``. See :pep:`585`
1656 A generic version of :class:`collections.abc.MappingView`.
1659 :class:`collections.abc.MappingView` now supports ``[]``. See :pep:`585`
1664 A generic version of :class:`collections.abc.MutableMapping`.
1667 :class:`collections.abc.MutableMapping` now supports ``[]``. See
1672 A generic version of :class:`collections.abc.MutableSequence`.
1675 :class:`collections.abc.MutableSequence` now supports ``[]``. See
1680 A generic version of :class:`collections.abc.MutableSet`.
1683 :class:`collections.abc.MutableSet` now supports ``[]``. See :pep:`585`
1688 A generic version of :class:`collections.abc.Sequence`.
1691 :class:`collections.abc.Sequence` now supports ``[]``. See :pep:`585`
1696 A generic version of :class:`collections.abc.ValuesView`.
1699 :class:`collections.abc.ValuesView` now supports ``[]``. See :pep:`585`
1702 Corresponding to other types in :mod:`collections.abc`
1707 A generic version of :class:`collections.abc.Iterable`.
1710 :class:`collections.abc.Iterable` now supports ``[]``. See :pep:`585`
1715 A generic version of :class:`collections.abc.Iterator`.
1718 :class:`collections.abc.Iterator` now supports ``[]``. See :pep:`585`
1753 :class:`collections.abc.Generator` now supports ``[]``. See :pep:`585`
1758 An alias to :class:`collections.abc.Hashable`
1762 A generic version of :class:`collections.abc.Reversible`.
1765 :class:`collections.abc.Reversible` now supports ``[]``. See :pep:`585`
1770 An alias to :class:`collections.abc.Sized`
1777 A generic version of :class:`collections.abc.Coroutine`.
1781 from collections.abc import Coroutine
1790 :class:`collections.abc.Coroutine` now supports ``[]``. See :pep:`585`
1827 :class:`collections.abc.AsyncGenerator` now supports ``[]``. See
1832 A generic version of :class:`collections.abc.AsyncIterable`.
1837 :class:`collections.abc.AsyncIterable` now supports ``[]``. See :pep:`585`
1842 A generic version of :class:`collections.abc.AsyncIterator`.
1847 :class:`collections.abc.AsyncIterator` now supports ``[]``. See :pep:`585`
1852 A generic version of :class:`collections.abc.Awaitable`.
1857 :class:`collections.abc.Awaitable` now supports ``[]``. See :pep:`585`
2069 :mod:`collections` class, it gets normalized to the original class.