Skip to content

Commit 289d78e

Browse files
1 parent ea767ba commit 289d78e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

codespell_lib/_codespell.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,6 @@ def parse_options(
489489
"accepts globs as well. E.g.: if you want "
490490
"codespell to skip .eps and .txt files, "
491491
'you\'d give "*.eps,*.txt" to this option.',
492-
default=[],
493492
)
494493

495494
parser.add_argument(
@@ -1103,7 +1102,7 @@ def parse_file(
11031102

11041103

11051104
def flatten_clean_comma_separated_arguments(
1106-
arguments: List[str],
1105+
arguments: Iterable[str],
11071106
) -> List[str]:
11081107
"""
11091108
>>> flatten_clean_comma_separated_arguments(["a, b ,\n c, d,", "e"])
@@ -1263,7 +1262,9 @@ def main(*args: str) -> int:
12631262

12641263
file_opener = FileOpener(options.hard_encoding_detection, options.quiet_level)
12651264

1266-
glob_match = GlobMatch(flatten_clean_comma_separated_arguments(options.skip))
1265+
glob_match = GlobMatch(
1266+
flatten_clean_comma_separated_arguments(options.skip) if options.skip else []
1267+
)
12671268
try:
12681269
glob_match.match("/random/path") # does not need a real path
12691270
except re.error:

0 commit comments

Comments
 (0)