-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
gh-100673: Removed erroneous note in the get_type_hints docs #100701
Conversation
typing.get_type_hints still includes base class type hints.
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.
Thank you! cc @JelleZijlstra @sobolevn as reviewer of #99990
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.
Thanks, this looks good to me. I confirmed that, despite the behaviour of __annotations__
changing between 3.9 and 3.10, there was no behaviour change to get_type_hints
between 3.9 and 3.10. (Cc. @MonadChains, as the author of #99990, and @sobolevn, who suggested adding the note to the get_type_hints
docs.)
Thanks @FrozenBob for the PR, and @AlexWaygood for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11. |
Sorry, @FrozenBob and @AlexWaygood, I could not cleanly backport this to |
GH-100823 is a backport of this pull request to the 3.11 branch. |
…ythonGH-100701) Removed erroneous note in the get_type_hints docs typing.get_type_hints still includes base class type hints. (cherry picked from commit deaf090) Co-authored-by: FrozenBob <[email protected]>
Removed erroneous note in the get_type_hints docs typing.get_type_hints still includes base class type hints. (cherry picked from commit deaf090) Co-authored-by: FrozenBob <[email protected]>
Yeah, I still think that adding a note about |
…ython#100701) Removed erroneous note in the get_type_hints docs typing.get_type_hints still includes base class type hints. (cherry picked from commit deaf090)
GH-100826 is a backport of this pull request to the 3.10 branch. |
typing.get_type_hints still includes base class type hints, contrary to a note in the docs claiming this was changed in Python 3.10. The note was a mistake. This PR removes the incorrect note.