Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider adding new plugin API for checking implicit definitions #15515

Open
sobolevn opened this issue Jun 25, 2023 · 1 comment
Open

Consider adding new plugin API for checking implicit definitions #15515

sobolevn opened this issue Jun 25, 2023 · 1 comment
Labels
feature topic-plugins The plugin API and ideas for new plugins

Comments

@sobolevn
Copy link
Member

Feature

This PR introduces a new check for mypy: we now can find incompatible __post_init__ methods in @dataclasses: https://github.com/python/mypy/pull/15503/files#diff-f96a2d6138bc6cdf2a07c4d37f6071cc25c1631afc107e277a28d5b59fc0ef04R1048-R1050

But, the thing is that for now we are using a direct call to dataclasses internal plugin, because there are no ways to do it otherwise.

Pitch

Let's discuss possible options we have to introduce a new API that can solve this problem.

CC @ilevkivskyi (original reviewer), @Tinche (as you might be interested), @JukkaL

@Tinche
Copy link
Contributor

Tinche commented Jun 26, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature topic-plugins The plugin API and ideas for new plugins
Projects
None yet
Development

No branches or pull requests

2 participants