]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-119180: Document the `format` parameter in `typing.get_type_hints()` (#143758)
authorVictorien <65306057+Viicos@users.noreply.github.com>
Thu, 23 Apr 2026 02:50:15 +0000 (04:50 +0200)
committerGitHub <noreply@github.com>
Thu, 23 Apr 2026 02:50:15 +0000 (02:50 +0000)
commit8bf99ae3a9f12d105a70d6fda93dddde4adeee8f
treed0093d36d2fa276d564ea7adadc7cd0b971fdb2d
parent75ff1afcb6a1bb2b3d54899e9b222a61798fa491
gh-119180: Document the `format` parameter in `typing.get_type_hints()` (#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.
Doc/library/typing.rst