Skip to content
masterclass Buddy

Pydantic · Type Alias

conint

conint creates an integer type with validation constraints such as bounds, multiples, and strict mode. Pydantic recommends Annotated[int, Field(...)] instead for new code.

Last updated

Syntax

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]

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • Field
  • Annotated
  • PositiveInt
  • NegativeInt
  • NonNegativeInt
  • NonPositiveInt
  • confloat
  • condecimal

Source: Pydantic Types | Pydantic Docs. Checked 2026-11-03.