-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
Improve code examples in typing.rst
#105346
Improve code examples in typing.rst
#105346
Conversation
Thanks @AlexWaygood for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
Sorry, @AlexWaygood, I could not cleanly backport this to |
(cherry picked from commit 81c8132) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
GH-105422 is a backport of this pull request to the 3.12 branch. |
GH-105427 is a backport of this pull request to the 3.11 branch. |
.. testcode::
directives to make sure they don't regress... doctest::
directives to all REPL examples that pass, to make sure they continue to pass in the future... testcode::
directives to the code examples forget_args
andget_origin
, so the assertions we already have in those examples are tested in CI.get_type_hints
andis_typeddict
, and test these assertions using the.. testcode::
directive.📚 Documentation preview 📚: https://cpython-previews--105346.org.readthedocs.build/