You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Typing PEPs: Link to the typing spec as canonical documentation #3579
The text of typing PEPs has often served as the canonical reference for how aspects of the type system work. Now that we have the typing spec in place, we should link to it as the canonical documentation, just as we do for packing PEPs that link to packaging.python.org.
(Cross-referencing python/typing#1531, which should make this easier by adding more link targets within the spec.)
PEP 563 was mostly about runtime behavior, not typing behavior. I think it should not be marked final, but Superseded by PEP 649 once that lands (hopefully in 3.13).
Activity
hugovk commentedon Jan 15, 2024
And PR #3575 added the ability to add canonical link banners to the typing spec via intersphinx, like:
hugovk commentedon Feb 10, 2024
I've updated the OP with a checklist.
hugovk commentedon Feb 15, 2024
Where is the spec for this one?
JelleZijlstra commentedon Feb 15, 2024
PEP 563 was mostly about runtime behavior, not typing behavior. I think it should not be marked final, but Superseded by PEP 649 once that lands (hopefully in 3.13).
hugovk commentedon Feb 15, 2024
And how about the specs for these three?
AlexWaygood commentedon Feb 15, 2024
https://docs.python.org/3/library/stdtypes.html#union-type might do pretty well for that one
JelleZijlstra commentedon Feb 15, 2024
688 should point to https://docs.python.org/3/reference/datamodel.html#emulating-buffer-types.
692 should point to https://typing.readthedocs.io/en/latest/spec/callables.html#unpack-for-keyword-arguments
hugovk commentedon Mar 24, 2024
Almost done!
https://peps.python.org/topic/typing/#accepted-peps-accepted-may-not-be-implemented-yet shows:
Accepted PEPs (accepted; may not be implemented yet)
hugovk commentedon Jun 27, 2024
All done except for PEP 563/649, which is being implemented for 3.14, so we can mark that as final separately when the time comes.
Thanks all, let's close this!