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

use Literal[_MISSING_TYPE.MISSING] for dataclasses.field defaults #13256

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

Conversation

tungol
Copy link
Contributor

@tungol tungol commented Dec 17, 2024

No description provided.

This comment has been minimized.

@yangdanny97
Copy link
Contributor

relevant old PR #5900

@tungol
Copy link
Contributor Author

tungol commented Dec 17, 2024

Thanks, I missed that while I was looking into it.

@tungol tungol closed this Dec 17, 2024
@tungol tungol reopened this Dec 17, 2024
@tungol
Copy link
Contributor Author

tungol commented Dec 17, 2024

That one was before we had the so-called enum trick in place. Idiomatic narrowing should work now, which makes this more viable.

Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

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.

2 participants