Skip to content

Commit

Permalink
Undo previous, since it does not work on Python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkerl committed Dec 4, 2024
1 parent 6edc761 commit fe1d8d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python-spec/src/somacore/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def read(
@abc.abstractmethod
def change_domain(
self,
newdomain: Sequence[Tuple[Any, Any] | None] | None,
newdomain: Optional[Sequence[Optional[Tuple[Any, Any]]]],
check_only: bool = False,
) -> StatusAndReason:
"""Allows you to enlarge the domain of a SOMA :class:`DataFrame`, when
Expand Down Expand Up @@ -307,7 +307,7 @@ def create(
raise NotImplementedError()

def resize(
self, newshape: Sequence[int | None], check_only: bool = False
self, newshape: Sequence[Union[int, None]], check_only: bool = False
) -> StatusAndReason:
"""Increases the shape of the array as specfied. Raises an error if the new
shape is less than the current shape in any dimension. Raises an error if
Expand Down

0 comments on commit fe1d8d8

Please sign in to comment.