collections

collections#

Explicit collection types that exclude bare strings and iterators.

OrderedCollection: TypeAlias = list[~T] | tuple[~T, ...]#

Ordered containers that exclude bare strings, unlike Sequence.

ExplicitCollection: TypeAlias = list[~T] | tuple[~T, ...] | set[~T] | frozenset[~T]#

Concrete containers that exclude bare strings, unlike Collection.