Skip to content

Rewrite typing.Annotated docs #124269

Closed
Closed

Description

@sobolevn

As @JelleZijlstra said in #124125

I don't like this long bulleted list of individual issues. We should rewrite it to a more organized form.

typing.Annotated indeed has a lot bullet points in the docs: https://docs.python.org/3/library/typing.html#typing.Annotated

So, how can we be more compact about it while keeping all the details?

Linked PRs

Activity

  1. picnixz commented on Sep 20, 2024

    @picnixz
    Member

    How about grouping some features and the examples? There are some bullet points that don't have examples so they could be moved out in a paragraph directly.

    Interaction with get_type_hints may be a separate paragraph as well. And limitations on duplication and metadata order could be grouped.

    Finally the runtime behaviour should be a separate paragraph as well.

    It doesn't reduce the length of the docs (it will be probably increased) but you won't have bullet points anymore that are indigest.

  2. added a commit that references this issue on Mar 14, 2025
  3. added 2 commits that reference this issue on Mar 14, 2025
  4. added a commit that references this issue on Mar 14, 2025
  5. added a commit that references this issue on Mar 14, 2025
  6. added a commit that references this issue on Mar 14, 2025
  7. added a commit that references this issue on Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions