Skip to content
masterclass Buddy

Pydantic · Type Alias

NonNegativeInt

NonNegativeInt is a Pydantic type for integers that are zero or greater. It rejects negative values during model validation.

Last updated

Syntax

NonNegativeInt

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

Subscribe
  • PositiveInt
  • NonPositiveInt
  • NegativeInt
  • StrictInt
  • Annotated
  • annotated_types.Ge

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