-
-
Notifications
You must be signed in to change notification settings - Fork 33.4k
gh-111729: update generic syntax for typing.Concatenate sample code in Doc/library/typing.rst
#111734
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.
I know that other examples already do this, but in my opinion the current example is better, because it is more portable. 3.12 is out for like 2 months, while other versions do not support this syntax.
However, since we already did this change, I agree that all examples should be consistent.
Thanks a lot! :)
|
Thanks @CubeSugarCheese for the PR, and @JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12. |
…e code in `Doc/library/typing.rst` (pythonGH-111734) use new generic syntax (cherry picked from commit c3e19c3) Co-authored-by: 方糖 <[email protected]>
|
GH-111814 is a backport of this pull request to the 3.12 branch. |
…le code in `Doc/library/typing.rst` (GH-111734) (#111814) (cherry picked from commit c3e19c3) Co-authored-by: 方糖 <[email protected]>
…e code in `Doc/library/typing.rst` (python#111734) use new generic syntax
…e code in `Doc/library/typing.rst` (python#111734) use new generic syntax
…e code in `Doc/library/typing.rst` (python#111734) use new generic syntax
fix #111729
📚 Documentation preview 📚: https://cpython-previews--111734.org.readthedocs.build/