diff --git a/python-spec/src/somacore/data.py b/python-spec/src/somacore/data.py index a7badfe..4061a27 100644 --- a/python-spec/src/somacore/data.py +++ b/python-spec/src/somacore/data.py @@ -173,7 +173,7 @@ def read( @abc.abstractmethod def change_domain( self, - newdomain: Optional[Sequence[Optional[Tuple[Any, Any]]]], + newdomain: Sequence[Tuple[Any, Any] | None] | None, check_only: bool = False, ) -> StatusAndReason: """Allows you to enlarge the domain of a SOMA :class:`DataFrame`, when @@ -307,7 +307,7 @@ def create( raise NotImplementedError() def resize( - self, newshape: Sequence[Union[int, None]], check_only: bool = False + self, newshape: Sequence[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