Skip to content

Commit f80245e

Browse files
Apply suggestions from code review
Co-authored-by: Martin Durant <[email protected]>
1 parent 451165b commit f80245e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fsspec/caching.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def __getstate__(self) -> dict[str, Any]:
144144
del state["cache"]
145145
return state
146146

147-
def __setstate__(self, state) -> None:
147+
def __setstate__(self, state: dict[str, Any]) -> None:
148148
# Restore instance attributes
149149
self.__dict__.update(state)
150150
self.cache = self._makefile()
@@ -277,7 +277,7 @@ def __getstate__(self) -> dict[str, Any]:
277277
del state["_fetch_block_cached"]
278278
return state
279279

280-
def __setstate__(self, state) -> None:
280+
def __setstate__(self, state: dict[str, Any]) -> None:
281281
self.__dict__.update(state)
282282
self._fetch_block_cached = functools.lru_cache(state["maxblocks"])(
283283
self._fetch_block

0 commit comments

Comments
 (0)