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