collections
class deque[T]
Fields
1
T
type
Constructors
4
Properties
2
Methods
6
Special methods
8
class Counter[T]
Fields
1
T
type
Constructors
4
Methods
17
subtract(self: Self, elements: Generator[T], /)
subtract(self: Self, other: Counter[T], /)
subtract(self: Self, other: Dict[(T, int)], /)
update(self: Self, elements: Generator[T], /)
update(self: Self, other: Counter[T], /)
update(self: Self, other: Dict[(T, int)], /)
update(self: Self, /)
Special methods
25
__eq__(self: Self, other: Counter[T]) -> bool
__eq__(self: Self, other: Dict[(T, int)]) -> bool
__ne__(self: Self, other: Counter[T]) -> bool
__ne__(self: Self, other: Dict[(T, int)]) -> bool
class OrderedDict[K, V]
Constructors
1
Methods
1
Special methods
2
class defaultdict[K, V, S]
Fields
4
default_factory
S
K
type
V
type
S
TypeTrait[CallableTrait[([], V)]]
Constructors
8
__new__[VV: TypeTrait[V]](other: Dict[(K, V)], /) -> defaultdict[(K, VV, Function[([], V)])]
__new__[VV: TypeTrait[V], F: type](other: defaultdict[(K, V, F)], /) -> defaultdict[(K, VV, Function[([], V)])]
Methods
13
Special methods
18
__eq__[F: type](self: Self, other: defaultdict[(K, V, F)], /) -> bool
__eq__(self: Self, other: Dict[(K, V)], /) -> bool
__eq__(self: Self, other: Counter[K], /) -> bool
__ne__[F: type](self: Self, other: defaultdict[(K, V, F)], /) -> bool
__ne__(self: Self, other: Dict[(K, V)], /) -> bool
__ne__(self: Self, other: Counter[K], /) -> bool
class OrderedDict[K, V]
Constructors
1
Methods
1
Special methods
2
class Counter[T]
Extends
collections.Counter · View complete class API →
Constructors
1
Methods
2
Special methods
2
namedtuple[name: Literal[str]](args)