Sitelet https://web.archive.org/web/20210703105724/https://github.com/python/cpython/pull/26980
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

bpo-44490: Add __parameters__ and __getitem__ to types.Union #26980

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

@uriyyo
Copy link
Contributor

@uriyyo uriyyo commented Jul 1, 2021 •

@uriyyo
Copy link
Contributor Author

@uriyyo uriyyo commented Jul 1, 2021

@Fidget-Spinner Could you please review this PR?

Copy link
Contributor

@Fidget-Spinner Fidget-Spinner left a comment

@uriyyo thank you for sending this PR so quickly! Excellent work. I only have a few minor readability nits below.

Lib/test/test_types.py Outdated Show resolved Hide resolved
Objects/unionobject.c Outdated Show resolved Hide resolved
Include/genericaliasobject.h Outdated Show resolved Hide resolved
uriyyo and others added 6 commits Jul 1, 2021
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
….xY80VR.rst

Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
@Fidget-Spinner Fidget-Spinner requested a review from gvanrossum Jul 1, 2021
uriyyo and others added 2 commits Jul 1, 2021
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
@uriyyo
Copy link
Contributor Author

@uriyyo uriyyo commented Jul 2, 2021

@Fidget-Spinner Thanks for review, I have added tests that you suggested.

@Fidget-Spinner
Copy link
Contributor

@Fidget-Spinner Fidget-Spinner commented Jul 2, 2021

@Fidget-Spinner Thanks for review, I have added tests that you suggested.

Thanks for applying the suggestions. This LGTM. I've requested a review from Guido and I'm waiting for him to take a look when he has the time. I can't merge PRs, sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants