◐ Shell
clean mode source ↗

gh-119180: Document the `format` parameter in `typing.get_type_hints()` by Viicos · Pull Request #143758 · python/cpython

@Viicos

Viicos

@Viicos Viicos changed the title gh-119180: Document get type hints format gh-119180: Document the format parameter in typing.get_type_hints()

Jan 12, 2026
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

JelleZijlstra

JelleZijlstra pushed a commit that referenced this pull request

Apr 23, 2026
…_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

Apr 25, 2026
…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.