Skip to content

Commit a4471e1

Browse files
committed
MyPy fixes
1 parent 0a9ea12 commit a4471e1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/matrix/matrix.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,14 @@ def generate(
137137
cls,
138138
width,
139139
height,
140-
value: Union[Callable[[int, int], _MVT], Callable[[int], _MVT], Callable[[], _MVT], _MVT, Iterator],
140+
value: Union[
141+
Callable[[int, int], _MVT],
142+
Callable[[int], List[_MVT]],
143+
Callable[[], _MVT],
144+
Callable[[], List[_MVT]],
145+
_MVT,
146+
Iterator,
147+
],
141148
*,
142149
by_rows: bool = False,
143150
walkthrow: Walkthrow = Walkthrow.DEFAULT, # type: ignore # pylint: disable=W0613 # TODO

0 commit comments

Comments
 (0)