Skip to content

Commit

Permalink
Fix type annotation for gitignore pathspec (#3416)
Browse files Browse the repository at this point in the history
  • Loading branch information
isac322 committed Dec 10, 2022
1 parent 2ddea29 commit 1f7f6de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/black/__init__.py
Expand Up @@ -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:
Expand Down

0 comments on commit 1f7f6de

Please sign in to comment.