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 451165b commit f80245eCopy full SHA for f80245e
fsspec/caching.py
@@ -144,7 +144,7 @@ def __getstate__(self) -> dict[str, Any]:
144
del state["cache"]
145
return state
146
147
- def __setstate__(self, state) -> None:
+ def __setstate__(self, state: dict[str, Any]) -> None:
148
# Restore instance attributes
149
self.__dict__.update(state)
150
self.cache = self._makefile()
@@ -277,7 +277,7 @@ def __getstate__(self) -> dict[str, Any]:
277
del state["_fetch_block_cached"]
278
279
280
281
282
self._fetch_block_cached = functools.lru_cache(state["maxblocks"])(
283
self._fetch_block
0 commit comments