Skip to content
masterclass Buddy

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
FiniteFloat

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

Subscribe
  • StrictBool
  • StrictBytes
  • StrictFloat
  • StrictInt
  • StrictStr
  • FiniteFloat
  • conint()
  • confloat()

Source: Types/strict types | Pydantic Docs. Checked 2026-11-03.