|
1 | 1 | from __future__ import annotations
|
2 | 2 |
|
3 |
| -import pickle |
4 | 3 | from collections.abc import AsyncGenerator, Iterable, Mapping
|
5 | 4 | from dataclasses import dataclass
|
6 |
| -from typing import TYPE_CHECKING, Any, TypeAlias |
| 5 | +from typing import TYPE_CHECKING, TypeAlias |
7 | 6 | from urllib.parse import urlparse
|
8 | 7 |
|
9 | 8 | from zarr.abc.store import (
|
@@ -237,21 +236,6 @@ def __init__(
|
237 | 236 | def __str__(self) -> str:
|
238 | 237 | return f"ManifestStore(group={self._group}, stores={self._store_registry})"
|
239 | 238 |
|
240 |
| - def __getstate__(self) -> dict[Any, Any]: |
241 |
| - state = self.__dict__.copy() |
242 |
| - stores = state["_store_registry"]._stores.copy() |
243 |
| - for k, v in stores.items(): |
244 |
| - stores[k] = pickle.dumps(v) |
245 |
| - state["_store_registry"] = stores |
246 |
| - return state |
247 |
| - |
248 |
| - def __setstate__(self, state: dict[Any, Any]) -> None: |
249 |
| - stores = state["_store_registry"].copy() |
250 |
| - for k, v in stores.items(): |
251 |
| - stores[k] = pickle.loads(v) |
252 |
| - state["_store_registry"] = ObjectStoreRegistry(stores) |
253 |
| - self.__dict__.update(state) |
254 |
| - |
255 | 239 | async def get(
|
256 | 240 | self,
|
257 | 241 | key: str,
|
|
0 commit comments