You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs.concepts.dataclasses.md there is an example dataclass with the @model_validator(mode='before') decorator that does not use the @classmethod decorator. The @model_validator decorator docs state: "The first argument should be cls (and we also recommend you use @classmethod below @model_validator for proper type checking)".
Initial Checks
Description
docs.concepts.dataclasses.md there is an example dataclass with the
@model_validator(mode='before')
decorator that does not use the@classmethod
decorator. The @model_validator decorator docs state: "The first argument should be cls (and we also recommend you use @classmethod below @model_validator for proper type checking)".Example Code
Python, Pydantic & OS Version
The text was updated successfully, but these errors were encountered: