-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
reprlib.recursive_repr
does not copy __type_params__
#109818
Comments
sobolevn
added a commit
to sobolevn/cpython
that referenced
this issue
Sep 25, 2023
JelleZijlstra
pushed a commit
that referenced
this issue
Sep 28, 2023
JelleZijlstra
pushed a commit
to JelleZijlstra/cpython
that referenced
this issue
Sep 28, 2023
…s__` (pythonGH-109819). (cherry picked from commit f65f9e8) Co-authored-by: Nikita Sobolev <[email protected]>
csm10495
pushed a commit
to csm10495/cpython
that referenced
this issue
Sep 29, 2023
Yhg1s
pushed a commit
that referenced
this issue
Oct 2, 2023
#109999) [3.12] gh-109818: `reprlib.recursive_repr` copies `__type_params__` (GH-109819). (cherry picked from commit f65f9e8) Co-authored-by: Nikita Sobolev <[email protected]>
Thanks for the issue and PRs! Little reminder to close issues when the PRs are merged :) |
Glyphack
pushed a commit
to Glyphack/cpython
that referenced
this issue
Sep 2, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
Repro:
This happens because
recursive_repr
does not use@wraps
, but reinvents it:cpython/Lib/reprlib.py
Lines 26 to 33 in f2eaa92
And
__type_params__
was added in #104600Linked PRs
reprlib.recursive_repr
copies__type_params__
#109819reprlib.recursive_repr
copies__type_params__
(… #109999The text was updated successfully, but these errors were encountered: