diff --git a/funlib/geometry/roi.py b/funlib/geometry/roi.py index 7f3b646..724861c 100644 --- a/funlib/geometry/roi.py +++ b/funlib/geometry/roi.py @@ -2,7 +2,7 @@ from .freezable import Freezable import copy -from typing import Iterable, Union, Optional +from typing import Iterable, Union, Optional, Tuple import logging logger = logging.getLogger(__file__) @@ -154,7 +154,7 @@ def center(self) -> Coordinate: def get_center(self) -> Coordinate: return self.center - def to_slices(self) -> tuple[slice, ...]: + def to_slices(self) -> Tuple[slice, ...]: """Get a ``tuple`` of ``slice`` that represent this ROI and can be used to index arrays.""" slices = [] @@ -171,7 +171,7 @@ def to_slices(self) -> tuple[slice, ...]: return tuple(slices) - def get_bounding_box(self) -> tuple[slice, ...]: + def get_bounding_box(self) -> Tuple[slice, ...]: """Alias for ``to_slices()``.""" return self.to_slices()