8000 [3.11] Improve code examples in `typing.rst` (#105346) by AlexWaygood · Pull Request #105427 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.11] Improve code examples in typing.rst (#105346) #105427

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

Merged
merged 2 commits into from
Jun 7, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix tests
  • Loading branch information
AlexWaygood authored Jun 7, 2023
commit 9e0fd6a2b5a81a02083552e71e74302a0bf9b274
1 change: 1 addition & 0 deletions Doc/library/typing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1468,6 +1468,7 @@ for creating generic types.
.. testcode::

DType = TypeVar('DType')
Shape = TypeVarTuple('Shape')

class Array(Generic[DType, *Shape]): # This is fine
pass
Expand Down
0