Skip to content

Commit be71587

Browse files
committed
Silence spurious type error
This has appeared as a result of changes to either mypy or numpy. These types are a bit ugly, but do work as needed. Improvement in the future would be very nice.
1 parent 2f3b4e2 commit be71587

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/labthings_fastapi/types/numpy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def np_to_listoflists(arr: np.ndarray) -> NestedListOfNumbers:
6060
NB this will not be quick! Large arrays will be much better
6161
serialised by dumping to base64 encoding or similar.
6262
"""
63-
return arr.tolist()
63+
return arr.tolist() # type: ignore[return-value]
6464

6565

6666
def listoflists_to_np(lol: Union[NestedListOfNumbers, np.ndarray]) -> np.ndarray:

0 commit comments

Comments
 (0)