From 1f7f6de4aba4e1e42cb2f947204f8256f7370cb0 Mon Sep 17 00:00:00 2001 From: Isac Byeonghoon Yoo Date: Sun, 11 Dec 2022 00:08:05 +0900 Subject: [PATCH] Fix type annotation for gitignore pathspec (#3416) --- src/black/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/black/__init__.py b/src/black/__init__.py index 7d7ddbe..39d1296 100644 --- a/src/black/__init__.py +++ b/src/black/__init__.py @@ -630,7 +630,7 @@ def get_sources( using_default_exclude = exclude is None exclude = re_compile_maybe_verbose(DEFAULT_EXCLUDES) if exclude is None else exclude - gitignore: Optional[PathSpec] = None + gitignore: Optional[Dict[Path, PathSpec]] = None root_gitignore = get_gitignore(root) for s in src: -- 2.39.5