-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
bpo-41428: Implementation for PEP 604 #21515
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
Conversation
This comment has been minimized.
This comment has been minimized.
Thank you so much! Give me a few days to review this. Ping me if you haven't heard from me by Wednesday! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great start! Here's a boatload of review comments, from whitespace nits to feature requests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Presumably you were going to add more commits before asking for another review?)
@gvanrossum thanks so much for the comments! I'll implement your suggestions and clean this up :) |
I had thought of another case we might need to handle here, and was hoping to get your input. Should this:
evaluate to true? |
@pablogsal let me know if there are any other changes you'd like to see here. |
I just need to find some time to do another iteration 😉 Will try to do another pass by tomorrow, but we are very close! Thanks for the patience and tye good work :) |
@MaggieMoss I have pushed a new commit (8c06c1d) to do some simplifications and to fix some minor reference count issues and crashes. Please, check out that everything seems ok in that commit :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me!
Thanks for all the work and patience @MaggieMoss! Great job :)
@gvanrossum I won't land it myself in case you or Maggie want to take a last check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's good! Thanks so much Maggie for all your work.
Thanks so much for all of your reviews and comments, I've really appreciated it. 🎉 |
@MaggieMoss "test.test_asyncio.test_sendfile.ProactorEventLoopTests.test_sendfile_close_peer_in_the_middle_of_receiving" |
That's an unrelated race condition in asyncio in Windows, we can ignore it and just land |
Congrats Maggie!!
|
See https://www.python.org/dev/peps/pep-0604/ for more information. Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
- `__or__` was added to `TypeVar` in Python 3.10: https://bugs.python.org/issue41428 (this PR: python/cpython#21515) - `__or__` was added to `ForwardRef` in Python 3.11: https://bugs.python.org/issue45489
- `__or__` was added to `TypeVar` in Python 3.10: https://bugs.python.org/issue41428 (this PR: python/cpython#21515) - `__or__` was added to `ForwardRef` in Python 3.11: https://bugs.python.org/issue45489
PEP 604 - Proposed Implementation
https://www.python.org/dev/peps/pep-0604/
Building off of the comments left on this PR here: https://github.com/pprados/cpython/tree/PEP604
https://bugs.python.org/issue41428