Skip to content

Commit

Permalink
Change Sequence typing to make Python 3.8 happy
Browse files Browse the repository at this point in the history
  • Loading branch information
jp-dark committed Aug 29, 2024
1 parent 6a8d22c commit db46795
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python-spec/src/somacore/coordinates.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ class Axis(metaclass=abc.ABCMeta):
scale: Optional[np.float64] = None


class CoordinateSpace(Sequence[Axis]):
class CoordinateSpace(Sequence):
"""A coordinate system for spatial data."""

def __init__(self, axes: Sequence[Axis]):
def __init__(self, axes: typing.Sequence[Axis]):
"""TODO: Add docstring"""
# TODO: Needs good, comprehensive error handling.
if len(tuple(axes)) == 0:
Expand Down

0 comments on commit db46795

Please sign in to comment.