-
-
Notifications
You must be signed in to change notification settings - Fork 32k
Typing docs: move the deprecated stuff below the non-deprecated stuff #105781
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The diff is impossible to read but I trust that you're just moving things around.
Somewhat relatedly, maybe we should move get_overloads
and clear_overloads
to the "Introspection helpers" section.
Possibly, yeah. Also, the docs for |
Thanks @AlexWaygood for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
Sorry @AlexWaygood, I had trouble checking out the |
Sorry, @AlexWaygood, I could not cleanly backport this to |
GH-105783 is a backport of this pull request to the 3.12 branch. |
GH-105785 is a backport of this pull request to the 3.11 branch. |
Nearly all of the items in the sections "Generic Concrete Collections" and "Abstract Base Classes" are deprecated. Let's move these very large sections further down the page, so that they come below sections that mostly contain stuff that isn't deprecated ("Protocols"; "Functions and decorators"; "introspection helpers", etc.).
To keep this easy to review, I have solely cut and pasted the deprecated sections from one place in the document to another place. There are other changes that I would like to make in followup PRs:
typing.IO
,typing.TextIO
andtyping.BytesIO
to their own section. They are (I think) the only items in the "Generic Concrete Collections" section that are not deprecated.📚 Documentation preview 📚: https://cpython-previews--105781.org.readthedocs.build/