Pydantic · Type Alias
NonPositiveInt
NonPositiveInt is a Pydantic type for integers less than or equal to zero. It accepts negative integers and zero, but rejects positive integers.
Last updated
Syntax
from pydantic import NonPositiveInt
value: NonPositiveIntIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
NegativeIntNonNegativeIntPositiveIntStrictIntannotated_types.Le