Skip to content

MAINT: Use typing.Self for pydantic after-validators (Group 4 of #4504) - #4643

Open
Aditya Malkar (adimalkar) wants to merge 1 commit into
microsoft:mainfrom
adimalkar:maint/4504-validator-self
Open

Aditya Malkar (adimalkar) wants to merge 1 commit into
microsoft:mainfrom
adimalkar:maint/4504-validator-self

Conversation

@adimalkar

Copy link
Copy Markdown
Contributor

Description

Annotates the remaining pydantic after-validators with typing.Self, which is Group 4 of #4504.

Relates to #4504

AI assistance: Claude Code wrote this change and ran the checks.

…osoft#4504)

The 62 remaining @model_validator(mode="after") methods named their own
class as the return type. They all return self, so annotate them with Self
like the other 39. Annotations only.
Copilot AI balanced review requested due to automatic review settings November 25, 2026 19:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants