Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Many typing PEPs: add more links to canonical docs #3821

Merged
merged 3 commits into from
Jun 11, 2024

Conversation

AlexWaygood
Copy link
Member

@AlexWaygood AlexWaygood commented Jun 5, 2024

The new banners we have the top of many of the typing PEPs, taking people to the typing spec, are great. The typing spec generally only details how these special forms, decorators or classes should be interpreted by type checkers, however. Lots of these PEPs also introduced objects that were added to the runtime typing module, and if you're interested in how these objects behave at runtime, the docs at CPython are still usually the best place to go for details.

This PR adds additional links to the CPython docs for many of these typing PEPs. It also updates the wording of the banner, so that it's clear that the typing spec is not necessarily the sole source of documentation on these objects. Lastly, there are a couple of typing PEPs that don't yet have a "canonical banner" at the top; I added some links to a few of those.


📚 Documentation preview 📚: https://pep-previews--3821.org.readthedocs.build/

@AlexWaygood AlexWaygood marked this pull request as ready for review June 5, 2024 20:14
@AlexWaygood AlexWaygood requested a review from hugovk June 5, 2024 20:14
Copy link
Member

@hugovk hugovk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this!

Copy link
Contributor

@hauntsaninja hauntsaninja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you!

@AlexWaygood AlexWaygood merged commit e8273d3 into python:main Jun 11, 2024
23 checks passed
@AlexWaygood AlexWaygood deleted the more-spec-links branch June 11, 2024 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants