Skip to content

Consider adding new plugin API for checking implicit definitions #15515

Open
@sobolevn

Description

@sobolevn

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    featuretopic-pluginsThe plugin API and ideas for new plugins

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions