Uh oh!
There was an error while loading. Please reload this page.
gh-105486: Change the repr of ParamSpec list of args in GenericAlias - #105488
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
sobolevn
commented
Jun 27, 2023
Is there anything left? |
JelleZijlstra
commented
Jun 30, 2023
@AlexWaygood you added the 3.12 backport label, but this feels like a feature change that should only go into main. What do you think? Also, this PR is linked to issue #105487, but I don't see how it is related. I think this is a good change and we should merge it, but was there some other issue this should be linked to? |
JelleZijlstra
commented
Jun 30, 2023
Ah it should be #105486, I'll update the PR. |
repr of ParamSpec list of args in GenericAliasrepr of ParamSpec list of args in GenericAliasAlexWaygood
commented
Jun 30, 2023
Hmm, I view the current repr as pretty inconsistent — a latent bug that was exposed by the PEP-695 implementation. So I would favour backporting here. Given that 3.12 has yet to be released, I also think it will be less disruptive to change the repr now rather than have the repr change between 3.12 and 3.13, which could break people's doctests etc. |
JelleZijlstra
commented
Jun 30, 2023
That's fair. I suppose you could technically run into this in 3.11, but PEP 695 makes it a lot easier. I'm fine with backporting. |
miss-islington
commented
Jul 1, 2023
Thanks @sobolevn for the PR, and @JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12. |
…nericAlias` (pythonGH-105488) (cherry picked from commit eb7d6e7) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
bedevere-bot
commented
Jul 1, 2023
GH-106297 is a backport of this pull request to the 3.12 branch. |
Now it looks like this:
reproftypes.GenericAliaswithParamSpec#105486