Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.1k
gh-103406: Modernize pos-only arguments usage intest_signature
#103407
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
I am not sure about 3.10 backport 🤔 |
@JelleZijlstra would you have time to take a look, please? |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Thank you for the review! 🎉 |
Thanks@sobolevn for the PR, and@JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
bedevere-bot commentedApr 14, 2023
GH-103536 is a backport of this pull request to the3.11 branch. |
…e` (pythonGH-103407)(cherry picked from commit7569781)Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* main:pythongh-103532: Remove TKINTER_PROTECT_LOADTK code (pythonGH-103535)pythongh-103180: Add CI timeouts to all GitHub Actions jobs (python#103437) Remove double space in import error message (python#103458) ipaddress: Remove non-existent ip_str param from docstring (python#103461) Fix syntax typo in isolating extensions doc (python#103516)pythongh-103406: Modernize pos-only arguments usage in `test_signature` (python#103407) Proofread howto/perf_profiling.rst (python#103530) Fix unused functions warnings in instrumentation.c (pythonGH-103515)
* superopt: fix incompatible types update generated cases don't unnecessarily re-find args in error case Apply suggestions from code reviewpythongh-103532: Remove TKINTER_PROTECT_LOADTK code (pythonGH-103535)pythongh-103180: Add CI timeouts to all GitHub Actions jobs (python#103437) Remove double space in import error message (python#103458) ipaddress: Remove non-existent ip_str param from docstring (python#103461) Fix syntax typo in isolating extensions doc (python#103516)pythongh-103406: Modernize pos-only arguments usage in `test_signature` (python#103407) Proofread howto/perf_profiling.rst (python#103530) Fix unused functions warnings in instrumentation.c (pythonGH-103515)
Uh oh!
There was an error while loading.Please reload this page.
We can be sure that these
.__signature__
manipulations are safe to removed, because:.replace
calls are required by the test logic (for example, when testingSignature
andParameter
subclasses or invalid states) are not touched.__signature__
change is tested here:cpython/Lib/test/test_inspect.py
Lines 1045 to 1051 inecad802
Now,
/
is used where it must be used.test_inspect
by adding real pos-only parameters #103406