From: Isac Byeonghoon Yoo Date: Sat, 10 Dec 2022 15:08:05 +0000 (+0900) Subject: Fix type annotation for gitignore pathspec (#3416) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/1f7f6de4aba4e1e42cb2f947204f8256f7370cb0?ds=inline;pf=etc Fix type annotation for gitignore pathspec (#3416) --- 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: