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

[1.14 regression] False positive on abstract Enum subclasses in stubs #18322

Open
JelleZijlstra opened this issue Dec 21, 2024 · 0 comments
Open
Labels
bug mypy got something wrong topic-enum

Comments

@JelleZijlstra
Copy link
Member

While updating typeshed to mypy 1.14 (python/typeshed#13272), we got a few false positive errors on abstract enum classes like fpdf.enums.CoerciveEnum. This is due to the changes from #18068.

Perhaps we can throw the #18068 warning only if the enum class contains at least one attribute annotated with PEP 526 syntax. (cc @hauntsaninja as the author of #18068 and @tungol for the typeshed change.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug mypy got something wrong topic-enum
Projects
None yet
Development

No branches or pull requests

1 participant