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

Stubtest: fix another enum-related edge case #15943

Merged
merged 1 commit into from Aug 24, 2023

Conversation

AlexWaygood
Copy link
Member

No description provided.

from typing_extensions import Final, Literal
class BytesEnum(bytes, enum.Enum):
a: bytes
FOO: Literal[BytesEnum.a]
Copy link
Member Author

Choose a reason for hiding this comment

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

It's somewhat unlikely to come up in practice, but stubtest emits a false positive on this line using mypy master

@hauntsaninja hauntsaninja merged commit 4077dc6 into python:master Aug 24, 2023
13 checks passed
@AlexWaygood AlexWaygood deleted the more-enum-edge-cases branch August 24, 2023 07:32
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

2 participants