-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
GH-96073: Fix wild replacement in formatannotation #96074
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
Conversation
iyume
commented
Aug 18, 2022
•
edited by bedevere-bot
Loading
edited by bedevere-bot
- Issue: Lib/inspect.py: Avoid wild replacement in formatannotation #96073
Most changes to Python require a NEWS entry. Please add it using the blurb_it web app or the blurb command-line tool. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, don't forget to add news and tests.
I also think that proposed solution can be simplified?
I propose adding a new module to test it, something like:
new file: Lib/test/typingdata/__init__.py
new file: Lib/test/typingdata/typing.py
In the future we can even more all ann_modules
there 🤔
@sobolevn I have added some test based on your suggestion. |
Misc/NEWS.d/next/Library/2022-08-29-12-35-28.gh-issue-96073.WaGstf.rst
Outdated
Show resolved
Hide resolved
…Gstf.rst Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Thanks @iyume for the PR, and @JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11. |
GH-98045 is a backport of this pull request to the 3.11 branch. |
…honGH-96074) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit d5fea01) Co-authored-by: Anh71me <iyumelive@gmail.com>
GH-98046 is a backport of this pull request to the 3.10 branch. |
…honGH-96074) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit d5fea01) Co-authored-by: Anh71me <iyumelive@gmail.com>
…hon#96074) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>