Skip to content

Commit 84cec6b

Browse files
committed
Use Unpack instead of * to avoid missing support in Black
1 parent b2a639a commit 84cec6b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

python-311/ndarray.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
from typing import Generic, Literal, NewType, TypeVarTuple
1+
from typing import Generic, Literal, NewType, TypeVarTuple, Unpack
22

33
Ts = TypeVarTuple("Ts")
44

5-
class Array(Generic[*Ts]): # noqa
5+
6+
class Array(Generic[Unpack[Ts]]): # You can use *Ts instead of Unpack[Ts]
67
...
78

9+
810
Height = NewType("Height", int)
911
Width = NewType("Width", int)
1012
Channels = NewType("Channels", int)

0 commit comments

Comments
 (0)