gh-119180: Document the `format` parameter in `typing.get_type_hints()` by Viicos · Pull Request #143758 · python/cpython
Viicos
changed the title
gh-119180: Document get type hints format
gh-119180: Document the format parameter in typing.get_type_hints()
Do not mention `__annotations__` dictionaries, as this is slightly outdated since 3.14. Rewrite the note about possible exceptions for clarity. Also do not mention imported type aliases, as since 3.12 aliases with the `type` statement do not suffer from this limitation anymore.
JelleZijlstra pushed a commit that referenced this pull request
…_hints()` (GH-143758) (#148901) Do not mention `__annotations__` dictionaries, as this is slightly outdated since 3.14. Rewrite the note about possible exceptions for clarity. Also do not mention imported type aliases, as since 3.12 aliases with the `type` statement do not suffer from this limitation anymore. (cherry picked from commit 8bf99ae) Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>
ljfp pushed a commit to ljfp/cpython that referenced this pull request
…hints()` (python#143758) Do not mention `__annotations__` dictionaries, as this is slightly outdated since 3.14. Rewrite the note about possible exceptions for clarity. Also do not mention imported type aliases, as since 3.12 aliases with the `type` statement do not suffer from this limitation anymore.
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