gh-150641: Fix evaluating forward references in STRING format can 'leak' internal names in typing#150648
Conversation
…l names in `typing`
typingtyping
|
Kudos for addressing this issue so quickly! When Renaming the new property might help, but I would not be surprised if additional effort is needed. (I can imagine a world where |
I think the key is not eliminating the When Besides, this raises a question for me: should we add |
I think we agree. When I wrote "the The description of Note that |
|
I think the documentation isn't entirely accurate for
I did view |
|
My primary goal is preventing internal name exposure via Sphinx. PEP-749 suggests that |
|
Yes, I think any change in documentation can be a separate issue and PR.
Otherwise this looks fine to me. |
|
@JelleZijlstra Do you mind reviewing this PR again when you have a chance? |
JelleZijlstra
left a comment
There was a problem hiding this comment.
Thanks, a few small things.
…LIhd1.rst Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
|
Thanks @ByteFlowing1337 for the PR, and @JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15. |
|
Sorry, @ByteFlowing1337 and @JelleZijlstra, I could not cleanly backport this to |
|
GH-152935 is a backport of this pull request to the 3.15 branch. |
…can 'leak' internal names in `typing` (GH-150648) (#152935) gh-150641: Fix evaluating forward references in STRING format can 'leak' internal names in `typing` (GH-150648) (cherry picked from commit f75028f) Co-authored-by: Ivy Xu <fakeshadow1337@gmail.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Uh oh!
There was an error while loading. Please reload this page.