Skip to content

Commit 55a62ce

Browse files
committed
Switch list to Iterable in type hints
Signed-off-by: John Pennycook <john.pennycook@intel.com>
1 parent b6ae8f1 commit 55a62ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

codebasin/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import os
44
import shlex
55
import warnings
6+
from collections.abc import Iterable
67
from pathlib import Path
78

89
import pathspec
@@ -145,7 +146,7 @@ class CodeBase:
145146
def __init__(
146147
self,
147148
*directories: str | os.PathLike[str],
148-
exclude_patterns: list[str] = [],
149+
exclude_patterns: Iterable[str] = [],
149150
):
150151
"""
151152
Raises

0 commit comments

Comments
 (0)