Skip to main content

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

NameTypeDescription
strict`boolNone` = None
gt`intNone` = None
ge`intNone` = None
lt`intNone` = None
le`intNone` = None
multiple_of`intNone` = None

Returns

TypeDescription
type[int]The wrapped integer type.