-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gh-103395: Improve typing._GenericAlias.__dir__
coverage
#103396
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
dir_items = set(dir(Annotated[int, 4])) | ||
for required_item in [ | ||
'__args__', '__parameters__', '__origin__', | ||
'__metadata__', |
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.
Note that the __metadata__
field is not currently documented, but really should be:
(No change requested here.)
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.
LGTM, thanks!
Thanks @sobolevn for the PR, and @AlexWaygood for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
…honGH-103396) (cherry picked from commit a28e2ce) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
GH-103410 is a backport of this pull request to the 3.11 branch. |
(cherry picked from commit a28e2ce) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
One interesting thing about
Callable
: #103395 (comment)Did I cover all magic props / methods that we promise to have?
Do I need to add anything else to the test?
typing._GenericAlias.__dir__
coverage #103395