Skip to content

Commit bacfd76

Browse files
committed
fix type annotation
1 parent 8a06149 commit bacfd76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bioimageio/core/backends/pytorch_backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def __init__(
4646
self._primary_device = devices[0]
4747

4848
def _forward_impl(
49-
self, input_arrays: Sequence[NDArray[Any] | None]
49+
self, input_arrays: Sequence[Optional[NDArray[Any]]]
5050
) -> List[Optional[NDArray[Any]]]:
5151
tensors = [
5252
None if a is None else torch.from_numpy(a).to(self._primary_device)

0 commit comments

Comments
 (0)