|
6 | 6 | from zarr.v3.array import Array # noqa: F401
|
7 | 7 | from zarr.v3.array_v2 import ArrayV2 # noqa: F401
|
8 | 8 | from zarr.v3.group import Group # noqa: F401
|
9 |
| -from zarr.v3.group_v2 import GroupV2 # noqa: F401 |
10 | 9 | from zarr.v3.metadata import RuntimeConfiguration, runtime_configuration # noqa: F401
|
11 | 10 | from zarr.v3.store import ( # noqa: F401
|
12 |
| - LocalStore, |
13 |
| - RemoteStore, |
14 |
| - Store, |
15 | 11 | StoreLike,
|
16 |
| - StorePath, |
17 | 12 | make_store_path,
|
18 | 13 | )
|
19 | 14 | from zarr.v3.sync import sync as _sync
|
|
22 | 17 | async def open_auto_async(
|
23 | 18 | store: StoreLike,
|
24 | 19 | runtime_configuration_: RuntimeConfiguration = RuntimeConfiguration(),
|
25 |
| -) -> Union[Array, ArrayV2, Group, GroupV2]: |
| 20 | +) -> Union[Array, ArrayV2, Group]: |
26 | 21 | store_path = make_store_path(store)
|
27 | 22 | try:
|
28 |
| - return await Group.open_or_array(store_path, runtime_configuration=runtime_configuration_) |
| 23 | + return await Array.open(store_path, runtime_configuration=runtime_configuration_) |
29 | 24 | except KeyError:
|
30 |
| - return await GroupV2.open_or_array(store_path, runtime_configuration_) |
| 25 | + return await Group.open(store_path, runtime_configuration=runtime_configuration_) |
31 | 26 |
|
32 | 27 |
|
33 | 28 | def open_auto(
|
34 | 29 | store: StoreLike,
|
35 | 30 | runtime_configuration_: RuntimeConfiguration = RuntimeConfiguration(),
|
36 |
| -) -> Union[Array, ArrayV2, Group, GroupV2]: |
| 31 | +) -> Union[Array, ArrayV2, Group]: |
37 | 32 | return _sync(
|
38 | 33 | open_auto_async(store, runtime_configuration_),
|
39 | 34 | runtime_configuration_.asyncio_loop,
|
|
0 commit comments