Skip to content

Commit 395be73

Browse files
committed
fix type hint
1 parent 9b19ee5 commit 395be73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rastervision_core/rastervision/core/data/label_store/semantic_segmentation_label_store.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ def _clip_to_extent(self,
351351
extent: Box,
352352
window: Box,
353353
arr: Optional[np.ndarray] = None
354-
) -> Tuple[Box, np.ndarray]:
354+
) -> Tuple[Box, Optional[np.ndarray]]:
355355
clipped_window = window.intersection(extent)
356356
if arr is not None:
357357
h, w = clipped_window.size

0 commit comments

Comments
 (0)