Skip to content
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
de-695
  • Loading branch information
JelleZijlstra committed May 27, 2023
commit df9d949ee588a9b12cf95a4011aab6648099cb3a
4 changes: 2 additions & 2 deletions Doc/library/typing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1440,10 +1440,10 @@ for creating generic types.

DType = TypeVar('DType')

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

class Array2[*Shape, DType]: # This would also be fine
class Array2(Generic[*Shape, DType]): # This would also be fine
pass

float_array_1d: Array[float, Height] = Array() # Totally fine
Expand Down