Skip to content

Conversation

@davidhewitt
Copy link

Pydantic 2.12 warns if @classmethod is used on a model_validator (it's expected to be an instance method).

@davidhewitt davidhewitt force-pushed the pydantic-2.12-validator branch from dd6f5b5 to bafec1d Compare October 22, 2025 18:42
@davidhewitt davidhewitt changed the title fix pydantic warning for classmethod model_validator fix: remove classmethod from model_validator Oct 22, 2025
@radoshi
Copy link

radoshi commented Oct 23, 2025

@davidhewitt thank you for fixing this. Seeing exactly the same warning. 🙏🏽

@janasangeetha janasangeetha self-assigned this Oct 23, 2025
@janasangeetha janasangeetha added the size:S Code changes < 10 lines label Oct 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S Code changes < 10 lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants