Skip to content

Commit 6fc087f

Browse files
authored
Sync DataFrame change_domain with impl repo (#251)
1 parent e49776b commit 6fc087f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

python-spec/src/somacore/data.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
Any,
1212
ClassVar,
1313
Iterator,
14+
List,
1415
Optional,
1516
Sequence,
1617
Tuple,
@@ -27,6 +28,9 @@
2728

2829
_RO_AUTO = options.ResultOrder.AUTO
2930

31+
AxisDomain = Union[None, Tuple[Any, Any], List[Any]]
32+
Domain = Sequence[AxisDomain]
33+
3034

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

0 commit comments

Comments
 (0)