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
PositiveIntIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
NegativeIntNonPositiveIntNonNegativeIntStrictIntAnnotated