]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-119180: Document the `format` parameter in `typing.get_type_hints()` (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 23 Apr 2026 02:59:18 +0000 (04:59 +0200)
committerGitHub <noreply@github.com>
Thu, 23 Apr 2026 02:59:18 +0000 (19:59 -0700)
commit032b1be5bb88f0988a13b056f1a09253acc0d838
tree1c7e7d19e1aab0c1a41ff3b67d6319f0a22cdbf1
parent0a63bb89717e55bc39e7a574bf29d9cf767c3032
[3.14] gh-119180: Document the `format` parameter in `typing.get_type_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 8bf99ae3a9f12d105a70d6fda93dddde4adeee8f)

Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>
Doc/library/typing.rst