Skip to content

Commit 3c88769

Browse files
Apply ruff/flake8-comprehensions rule C419 (#1704)
C419 Unnecessary list comprehension
1 parent da3ba38 commit 3c88769

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fsspec/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ def expand_paths_if_needed(paths, mode, num, fs, name_function):
578578
paths = list(paths)
579579

580580
if "w" in mode: # read mode
581-
if sum([1 for p in paths if "*" in p]) > 1:
581+
if sum(1 for p in paths if "*" in p) > 1:
582582
raise ValueError(
583583
"When writing data, only one filename mask can be specified."
584584
)

0 commit comments

Comments
 (0)