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

stubgen: preserve enum value initialisers #17125

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hauntsaninja
Copy link
Collaborator

@@ -4342,3 +4342,19 @@ alias = tuple[()]
def f(x: tuple[()]): ...

class C(tuple[()]): ...

[case testPreserveEnumValue_semanal]
Copy link
Member

Choose a reason for hiding this comment

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

Can you test what happens with an enum over a nontrivial type, like a user-defined class?

@Hnasar
Copy link
Contributor

Hnasar commented Apr 15, 2024

Just as an FYI, with this change we may be more likely to run in to #16007 where, with fully defined flag enums, in stubs mypy issues spurious errors.

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.

None yet

3 participants