Skip to content

Commit 4b3a8fd

Browse files
committed
Silence a spurious mypy error
This isn't a change in the code, I suspect it's a change in mypy. This speaks in favour of freezing deps for some CI jobs.
1 parent b502ec1 commit 4b3a8fd

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)