From eff02f9ff402f9ba0dcf1ff47ed91949942a0e81 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Sat, 12 Oct 2024 19:39:47 +0200 Subject: [PATCH] Apply ruff/flake8-simplify rule SIM910 SIM910 Use `kwargs.get(...)` instead of `kwargs.get(..., None)` --- fsspec/implementations/cached.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fsspec/implementations/cached.py b/fsspec/implementations/cached.py index 447e4f267..8b8b83295 100644 --- a/fsspec/implementations/cached.py +++ b/fsspec/implementations/cached.py @@ -612,7 +612,7 @@ def cat( **kwargs, ): paths = self.expand_path( - path, recursive=recursive, maxdepth=kwargs.get("maxdepth", None) + path, recursive=recursive, maxdepth=kwargs.get("maxdepth") ) getpaths = [] storepaths = []