We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d15e43 commit 9a25057Copy full SHA for 9a25057
src/zarr/storage/_object.py
@@ -142,10 +142,12 @@ def __repr__(self) -> str:
142
return f"ObjectStore({self})"
143
144
def __getstate__(self) -> dict[Any, Any]:
145
- self.__dict__.update({"store": pickle.dumps(self.store)})
146
- return self.__dict__.copy()
+ state = self.__dict__.copy()
+ state["store"] = pickle.dumps(self.store)
147
+ return state
148
149
def __setstate__(self, state: dict[Any, Any]) -> None:
150
+ state["store"] = pickle.loads(state["store"])
151
self.__dict__.update(state)
152
153
async def get(
0 commit comments