Skip to content

[3.14] gh-119180: Document the format parameter in typing.get_type_hints() (GH-143758)#148901

Merged
JelleZijlstra merged 1 commit intopython:3.14from
miss-islington:backport-8bf99ae-3.14
Apr 23, 2026
Merged

[3.14] gh-119180: Document the format parameter in typing.get_type_hints() (GH-143758)#148901
JelleZijlstra merged 1 commit intopython:3.14from
miss-islington:backport-8bf99ae-3.14

Conversation

@miss-islington
Copy link
Copy Markdown
Contributor

@miss-islington miss-islington commented Apr 23, 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.
(cherry picked from commit 8bf99ae)

Co-authored-by: Victorien 65306057+Viicos@users.noreply.github.com


📚 Documentation preview 📚: https://cpython-previews--148901.org.readthedocs.build/

…hints()` (pythonGH-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.
(cherry picked from commit 8bf99ae3a9f12d105a70d6fda93dddde4adeee8f)

Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>
@bedevere-app bedevere-app Bot added awaiting review docs Documentation in the Doc dir labels Apr 23, 2026
@github-project-automation github-project-automation Bot moved this to Todo in Docs PRs Apr 23, 2026
@bedevere-app bedevere-app Bot mentioned this pull request Apr 23, 2026
30 tasks
@JelleZijlstra JelleZijlstra merged commit 032b1be into python:3.14 Apr 23, 2026
36 of 37 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Apr 23, 2026
@miss-islington miss-islington deleted the backport-8bf99ae-3.14 branch April 23, 2026 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants