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.
Activity
picnixz commented on Sep 20, 2024
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.
gh-124269: Simplify `typing.Annotated` docs (#130770)
pythongh-124269: Simplify `typing.Annotated` docs (pythonGH-130770)
pythongh-124269: Simplify `typing.Annotated` docs (pythonGH-130770)
[3.13] gh-124269: Simplify `typing.Annotated` docs (GH-130770) (#131222)
[3.12] gh-124269: Simplify `typing.Annotated` docs (GH-130770) (#131223)
[3.12] pythongh-124269: Simplify `typing.Annotated` docs (pythonGH-13…
pythongh-124269: Simplify `typing.Annotated` docs (python#130770)