Skip to content

Commit

Permalink
Apply ruff/flake8-simplify rule SIM910
Browse files Browse the repository at this point in the history
SIM910 Use `kwargs.get(...)` instead of `kwargs.get(..., None)`
  • Loading branch information
DimitriPapadopoulos committed Oct 12, 2024
1 parent 5f3eeeb commit eff02f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fsspec/implementations/cached.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down

0 comments on commit eff02f9

Please sign in to comment.