Skip to content

Commit 5268209

Browse files
[python] SOMAObject.open: rm unused clib_type kwarg (#3954)
* `SOMAObject.open: rm unused `clib_type` kwarg * fix comment typos cf. #2820 * fix error-msg typo cf. #3847
1 parent 7b9684b commit 5268209

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

apis/python/src/tiledbsoma/_soma_object.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ def open(
6363
tiledb_timestamp: OpenTimestamp | None = None,
6464
context: SOMATileDBContext | None = None,
6565
platform_config: options.PlatformConfig | None = None,
66-
clib_type: str | None = None,
6766
) -> Self:
6867
"""Opens this specific type of SOMA object.
6968
@@ -77,7 +76,7 @@ def open(
7776
tiledb_timestamp:
7877
The TileDB timestamp to open this object at,
7978
either an int representing milliseconds since the Unix epoch
80-
or a datetime.dateime object.
79+
or a datetime.datetime object.
8180
When not provided (the default), the current time is used.
8281
8382
Returns:
@@ -164,7 +163,7 @@ def reopen(
164163
tiledb_timestamp:
165164
The TileDB timestamp to open this object at,
166165
either an int representing milliseconds since the Unix epoch
167-
or a datetime.dateime object.
166+
or a datetime.datetime object.
168167
When not provided (the default), the current time is used.
169168
170169
Raises:
@@ -278,7 +277,7 @@ def _verify_open_for_reading(self) -> None:
278277
)
279278
if self.mode != "r":
280279
raise SOMAError(
281-
f"{self.__class__.__name__} ({self.uri}) must be open for writing"
280+
f"{self.__class__.__name__} ({self.uri}) must be open for reading"
282281
)
283282

284283
@property

0 commit comments

Comments
 (0)