Skip to content

Conversation

@hyperkai
Copy link
Contributor

@hyperkai hyperkai commented Dec 30, 2025

gh-20495

CLASS_PATTERN_GENERIC_TYPE_ALIAS in mypy/mypy/message_registry.py below is no longer used so you can decide to remove it or not:

CLASS_PATTERN_GENERIC_TYPE_ALIAS: Final = (
    "Class pattern class must not be a type alias with type parameters"
)

@github-actions
Copy link
Contributor

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

Copy link
Collaborator

@A5rocks A5rocks left a comment

Choose a reason for hiding this comment

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

The current error message is more specific and IMO better. The other error in the issue isn't fixed by this, I think.

@hauntsaninja
Copy link
Collaborator

Yeah, agreed with A5rocks that we need the specific error message here + fixing why this doesn't have no_args set

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.

3 participants