Skip to content

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jun 2, 2024

  • Explicit list of what it does that is different from
    "just return annotations"
  • Remove reference to PEP 563; adding the future import doesn't
    do anything to type aliases, and in general it will never make
    get_type_hints() less likely to fail.
  • Remove example, as the Annotated docs already have a similar
    example, and it's unbalanced to have one example about this
    one edge case but not about other behaviors of the function.

(cherry picked from commit aa9fe98)

Co-authored-by: Jelle Zijlstra [email protected]
Co-authored-by: Alex Waygood [email protected]


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

- Explicit list of what it does that is different from
  "just return __annotations__"
- Remove reference to PEP 563; adding the future import doesn't
  do anything to type aliases, and in general it will never make
  get_type_hints() less likely to fail.
- Remove example, as the Annotated docs already have a similar
  example, and it's unbalanced to have one example about this
  one edge case but not about other behaviors of the function.

(cherry picked from commit aa9fe98)

Co-authored-by: Jelle Zijlstra <[email protected]>
Co-authored-by: Alex Waygood <[email protected]>
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 issue skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants