Pydantic · Class
InstanceOf
InstanceOf[T] makes Pydantic require a value to be an instance of class T. Values that fail the instance check produce a validation error.
Last updated
Syntax
InstanceOf[T]In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
SkipValidationValidateAsfield_validator