Skip to content
masterclass Buddy

Pydantic · Type Alias

StrictInt

StrictInt makes Pydantic require an integer instead of converting compatible values. It rejects bool and accepts other integer subtypes.

Last updated

Syntax

StrictInt

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

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

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