-
-
Notifications
You must be signed in to change notification settings - Fork 33.1k
gh-81677: basic support for annotations in __text_signature__'s #101872
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
Open
skirpichev
wants to merge
26
commits into
python:main
Choose a base branch
from
skirpichev:text_sign_annot
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+68
−10
Open
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
3c23b22
gh-81677: basic support for annotations in signature strings
skirpichev e4745d2
Merge branch 'main' into text_sign_annot
skirpichev 9b44682
Redo parse_annotation() to accept annotation directly
skirpichev d85dd6c
Move assert
skirpichev c64280b
Match wrap_value() logic in parse_annotation()
skirpichev 83f1a1b
Merge branch 'main' into text_sign_annot
skirpichev 94467bc
Merge branch 'main' into text_sign_annot
skirpichev 68cf261
Merge branch 'main' into text_sign_annot
skirpichev 177c993
Merge branch 'master' into text_sign_annot
skirpichev 3dc4125
gh-114949: fix signature in the type.__prepare__() doc string
skirpichev ff758ab
gh-115231: fill __module__ for built-in class/staticmethods
skirpichev 83d21b2
gh-82062: correctly set module for built-in instance methods in inspe…
skirpichev 5ae8583
Merge branch 'master' into text_sign_annot
skirpichev 1f3c7f3
gh-116110: remove extra processing for the __signature__ attribute
skirpichev eb8dcca
Merge branch 'main' into text_sign_annot
skirpichev b8c44b5
Merge branch 'main' into text_sign_annot
skirpichev 0720f4d
Merge branch 'main' into text_sign_annot
skirpichev 897547a
Merge branch 'main' into text_sign_annot
skirpichev 494d4e7
Revert "gh-114949: fix signature in the type.__prepare__() doc string"
skirpichev 38b7d53
Revert "gh-115231: fill __module__ for built-in class/staticmethods"
skirpichev 1173cac
Revert "gh-116110: remove extra processing for the __signature__ attr…
skirpichev 76ab235
- news
skirpichev 9c7c0ed
revert test_misc.py
skirpichev 954c71b
Merge branch 'main' into text_sign_annot
skirpichev 7bb0394
Merge branch 'master' into text_sign_annot
skirpichev 8e2d1ff
+ make linter happy again
skirpichev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
Misc/NEWS.d/next/Library/2023-02-20-07-33-54.gh-issue-81677.bSmaNE.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Basic support of annotations in :func:`inspect.signature` handling of | ||
``__text_signature__``. Patch by Sergey B Kirpichev. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.