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;hp=2ddea293a88919650266472186620a98a4a8bb37 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: