The typing docs currently frequently link to the PEPs that defined new typing features. Instead, they should link to the typing spec, which unlike the PEPs is a living document.
In the online documentation, we can do this with intersphinx. I have this running locally and can send a PR.
I'm less sure about how to handle this in the docstrings. For example, Protocol's docstring refers to PEP 544:
|
See PEP 544 for details. Protocol classes decorated with |
. Should we provide a full URL to the spec, like
https://typing.readthedocs.io/en/latest/spec/protocol.html?
Linked PRs
The typing docs currently frequently link to the PEPs that defined new typing features. Instead, they should link to the typing spec, which unlike the PEPs is a living document.
In the online documentation, we can do this with intersphinx. I have this running locally and can send a PR.
I'm less sure about how to handle this in the docstrings. For example, Protocol's docstring refers to PEP 544:
cpython/Lib/typing.py
Line 1987 in b32789c
Linked PRs