Pydantic · Type Alias
NonNegativeFloat
NonNegativeFloat is a Pydantic type for floats that are zero or greater. It rejects negative values during validation.
Last updated
Syntax
from pydantic import NonNegativeFloat
value: NonNegativeFloatIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
PositiveFloatNegativeFloatNonPositiveFloatFiniteFloatStrictFloatannotated_types.Ge