From c840b73b70056e5391cfab8a99bca048b7fff0e8 Mon Sep 17 00:00:00 2001 From: John Kerl Date: Thu, 3 Oct 2024 12:07:49 -0400 Subject: [PATCH] Sync `domain` argument between `Collection.add_new_dataframe` and `DataFrame.create` (#233) --- python-spec/src/somacore/collection.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/python-spec/src/somacore/collection.py b/python-spec/src/somacore/collection.py index e0ac269c..8ff2877e 100644 --- a/python-spec/src/somacore/collection.py +++ b/python-spec/src/somacore/collection.py @@ -1,5 +1,14 @@ import abc -from typing import Any, MutableMapping, Optional, Sequence, Type, TypeVar, overload +from typing import ( + Any, + MutableMapping, + Optional, + Sequence, + Tuple, + Type, + TypeVar, + overload, +) import pyarrow as pa from typing_extensions import Final, Self @@ -145,6 +154,7 @@ def add_new_dataframe( uri: Optional[str] = None, schema: pa.Schema, index_column_names: Sequence[str] = (options.SOMA_JOINID,), + domain: Optional[Sequence[Optional[Tuple[Any, Any]]]] = None, platform_config: Optional[options.PlatformConfig] = None, ) -> data.DataFrame: """Creates a new DataFrame as a child of this collection.