confrozenset
A wrapper around typing.FrozenSet that allows for additional constraints.
def confrozenset(
item_type: type[HashableItemType],
min_length: int | None = None,
max_length: int | None = None
) - > type[frozenset[HashableItemType]]
A wrapper around typing.FrozenSet that allows for additional constraints.
Parameters
| Name | Type | Description |
|---|---|---|
| item_type | type[HashableItemType] | The type of the items in the frozenset. |
| min_length | `int | None` = None |
| max_length | `int | None` = None |
Returns
| Type | Description |
|---|---|
type[frozenset[HashableItemType]] | The wrapped frozenset type. |