Pydantic · Type Alias
StrictStr
Pydantic strict types reject compatible values instead of coercing them. Use them when a field must receive the expected type, with special rules for bytes, integers, floats, and finite numbers.
Last updated
Syntax
StrictBool
StrictBytes
StrictFloat
StrictInt
StrictStr
FiniteFloatIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
StrictBoolStrictBytesStrictFloatStrictIntStrictStrFiniteFloatconint()confloat()