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.
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 |
|
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 <30644137+FrozenBob@users.noreply.github.com>
|
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.