Skip to content

Commit

Permalink
Sync DataFrame change_domain with impl repo (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkerl authored Dec 17, 2024
1 parent e49776b commit 6fc087f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python-spec/src/somacore/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
Any,
ClassVar,
Iterator,
List,
Optional,
Sequence,
Tuple,
Expand All @@ -27,6 +28,9 @@

_RO_AUTO = options.ResultOrder.AUTO

AxisDomain = Union[None, Tuple[Any, Any], List[Any]]
Domain = Sequence[AxisDomain]


class DataFrame(base.SOMAObject, metaclass=abc.ABCMeta):
"""A multi-column table with a user-defined schema.
Expand Down Expand Up @@ -173,7 +177,7 @@ def read(
@abc.abstractmethod
def change_domain(
self,
newdomain: Optional[Sequence[Optional[Tuple[Any, Any]]]],
newdomain: Domain,
check_only: bool = False,
) -> StatusAndReason:
"""Allows you to enlarge the domain of a SOMA :class:`DataFrame`, when
Expand Down

0 comments on commit 6fc087f

Please sign in to comment.