conbytes
A wrapper around bytes that allows for additional constraints.
def conbytes(
min_length: int | None = None,
max_length: int | None = None,
strict: bool | None = None
) - > type[bytes]
A wrapper around bytes that allows for additional constraints.
Parameters
| Name | Type | Description |
|---|---|---|
| min_length | `int | None` = None |
| max_length | `int | None` = None |
| strict | `bool | None` = None |
Returns
| Type | Description |
|---|---|
type[bytes] | The wrapped bytes type. |