Uh oh!
There was an error while loading. Please reload this page.
gh-102615: Use list instead of tuple in repr of paramspec - #102637
Conversation
Fidget-Spinner
commented
Mar 13, 2023
I'm -1 on this fix. There is a bigger underlying issue. See #102615 (comment) |
gvanrossum
commented
Mar 13, 2023
I have no idea what to do here, I defer to @Fidget-Spinner. |
Fidget-Spinner
commented
Mar 14, 2023
I'm now +1 on this approach after Nikita reminded me that ParamSpec intentionally has edge cases that we cant fix. |
sobolevn
commented
Mar 14, 2023
This PR should be reviewed after #102681 |
sobolevn
commented
Mar 14, 2023
@AlexWaygood you can review this whenever you have the time. |
AlexWaygood
left a comment
There was a problem hiding this comment.
@AlexWaygood you can review this whenever you have the time.
Time, the most precious commodity of our age! Here's a review for the tests and docs :)
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
AlexWaygood
left a comment
There was a problem hiding this comment.
Thanks! LGTM, at least as a short-term fix.
I don't think we should backport this, as it could easily break people's doctests. Let me know if you disagree :)
| TsP[int, str, list[int], []]: "TsP[int, str, list[int], []]", | ||
| TsP[int, [str, list[int]]]: "TsP[int, [str, list[int]]]", | ||
| # These lines are just too long to fit: |
AlexWaygood
commented
Mar 16, 2023
@sobolevn, should we make the same changes we made here to cpython/Lib/_collections_abc.py Line 515 in 51d693c |
In fact... I wonder if we should just import |
@AlexWaygood I thought about making the similar change in Right now users can define their own classes with Any examples where this might be useful? I also think that sharing implementation details (functions starting with |
Okay, those are all good points. I think it might be nice at least to update the docstring of |
sobolevn
commented
Mar 16, 2023
I will! |
…python#102637) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
…python#102637) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Uh oh!
There was an error while loading. Please reload this page.