Skip to content

Commit

Permalink
Update CoordinateSpace type hints (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
jp-dark authored Sep 24, 2024
1 parent 63c7ba8 commit e71c15d
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,7 +26,7 @@ class Axis:


@attrs.define(frozen=True)
class CoordinateSpace(collections.abc.Sequence):
class CoordinateSpace(collections.abc.Sequence[Axis]):
"""A coordinate space for spatial data.
Args:
Expand All @@ -35,7 +35,7 @@ class CoordinateSpace(collections.abc.Sequence):
Lifecycle: experimental
"""

axes: Sequence[Axis] = attrs.field(converter=tuple)
axes: Tuple[Axis] = attrs.field(converter=tuple)

@axes.validator
def _validate(self, _, axes: Tuple[Axis, ...]) -> None:
Expand Down

0 comments on commit e71c15d

Please sign in to comment.