Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add PluginFlags for customizing behaviour of plugin-generated nodes#20182

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
sterliakov wants to merge2 commits intopython:master
base:master
Choose a base branch
Loading
fromsterliakov:feature/gh-20008-plugin-flags

Conversation

@sterliakov
Copy link
Collaborator

@sterliakovsterliakov commentedNov 4, 2025
edited
Loading

Fixes#20008.

Following the discussion in#20008, this PR explores a "flag container" approach to customizing checks for plugin-generated nodes.

As a real-world example, I patchedpydantic mypy plugin (branch here) to address#19898. Using the flag container allowed me to remove theclassmethod decorator application there which was just a wrong thing to do, probably misguided by the[override] error message for classmethods.

This looks easier than exposing the whole LSP checks infrastructure as public API.

If I understand correctly, this is fully backwards-compatible. Still should be mentioned in the plugin changes issue, though.

@github-actions
Copy link
Contributor

According tomypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@sterliakovsterliakov marked this pull request as ready for reviewNovember 4, 2025 16:46
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Do not check LSP compatibility ofplugin_generated nodes

1 participant

@sterliakov

[8]ページ先頭

©2009-2025 Movatter.jp