conint
A wrapper around int that allows for additional constraints.
def conint(
strict: bool | None = None,
gt: int | None = None,
ge: int | None = None,
lt: int | None = None,
le: int | None = None,
multiple_of: int | None = None
) - > type[int]
A wrapper around int that allows for additional constraints.
Parameters
| Name | Type | Description |
|---|---|---|
| strict | `bool | None` = None |
| gt | `int | None` = None |
| ge | `int | None` = None |
| lt | `int | None` = None |
| le | `int | None` = None |
| multiple_of | `int | None` = None |
Returns
| Type | Description |
|---|---|
type[int] | The wrapped integer type. |