Skip to content
masterclass Buddy

Pydantic · Type Alias

PositiveInt

PositiveInt is a Pydantic type for integers greater than zero. Use it as a model field type to reject zero and negative values.

Last updated

Syntax

PositiveInt

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

Subscribe
  • NegativeInt
  • NonPositiveInt
  • NonNegativeInt
  • StrictInt
  • Annotated

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