-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
dataclasses.InitVar breaks with typing.Optional #82612
Comments
The following code works fine with python 3.7 but breaks with 3.8:
Exception traceback:
The code runs fine with Tested locally with |
This is a bug with the I'm working on a PR now. |
git blame points to 01ee12b . I am tagging this as a 3.8 regression since the commit was not backported and 3.7 works fine. Feel free to remove it if it's a mistake. |
Oh, Samuel already made a PR. Then I withdraw PR 16701. |
Thank you for your contribution Samuel! |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: