Skip to content

gh-119180: Document the format parameter in typing.get_type_hints()#143758

Open
Viicos wants to merge 4 commits intopython:mainfrom
Viicos:document-get-type-hints-format
Open

gh-119180: Document the format parameter in typing.get_type_hints()#143758
Viicos wants to merge 4 commits intopython:mainfrom
Viicos:document-get-type-hints-format

Conversation

@Viicos
Copy link
Contributor

@Viicos Viicos commented Jan 12, 2026

I'm wondering if we should also update this section:

cpython/Doc/library/typing.rst

Lines 3336 to 3337 in 66e1399

This is often the same as ``obj.__annotations__``, but this function makes
the following changes to the annotations dictionary:

This gives some sense that accessing __annotations__ is safe, which is no longer the case.


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

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review docs Documentation in the Doc dir skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

3 participants