-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
[3.10] bpo-44490: Add __parameters__ and __getitem__ to types.Union (GH-26980) #27207
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
[3.10] bpo-44490: Add __parameters__ and __getitem__ to types.Union (GH-26980) #27207
Conversation
…ythonGH-26980) Co-authored-by: Ken Jin <[email protected]> Co-authored-by: Guido van Rossum <[email protected]>. (cherry picked from commit c45fa1a) Co-authored-by: Yurii Karabas <[email protected]>
Since you are backporting this, can I assume it means you approve of the original? One of the conditions by Pablo is that 2 core devs need to approve it for backport, and we already have Guido's approval. |
It includes changes made after merging the original PR. There are two bugs left, but I am going to fix them soon. |
LGTM but I don't understand why
Also let's wait for Pablo :). |
I am a bit uncomfortable backporting 100 lines of C for a new feature bit I will allow it based on:
But please, understand that we cannot backport new features in general, specially so close to the release candidate, so don't take this as the norm :) @serhiy-storchaka I saw that you are preparing several bugfixes and cleanups for this type. Please, merge these ASAP as we are very close the the release candidate and I want them to be tested as much as possible. Thanks! |
@pablogsal I understand that the last beta is generally the cut-off for new features, and that this is a rare exception by you. Thanks for allowing it! I'll try my best to ensure typing-related stuff doesn't cause you any more release headaches (especially on a weekend) for the 3.10/3.11 cycle. One unfortunate cause for things like these is that it seems that not many people actually test the betas until the last one, or when the release candidates arrive. So bugs/missing features get caught very late :(. |
They actually test it, but not so much for new features. The 90% of the tests they do is based on compatibility with existing code, and they don't stress test that much the new stuff |
Hmm I realised my original wording sounds kinda unfair on large packages that do test the betas. Yeah I meant just for the new features. (Sorry, no harm intended). I'm well aware third party packages like Django have been testing the betas since day 1 :). |
No problem, I understood your intent ;) |
Actually the first beta is the cut-off for new features. |
Oops right thanks, I blame timezones for my lapse in memory :P. In any case, the windows x64 tests are unrelated |
If that check if failing it means that this PR is affecting the ABI in any way, it doesn't distinguish the public or private one. Is comparing the old dump go the new one, so I'd claiming that the old one has these functions removed |
Yeah, the Py_API is for exported names, not for purely internal functions. |
Co-authored-by: Ken Jin <[email protected]>
Co-authored-by: Ken Jin [email protected]
Co-authored-by: Guido van Rossum [email protected].
(cherry picked from commit c45fa1a)
Co-authored-by: Yurii Karabas [email protected]
https://bugs.python.org/issue44490