]> git.madduck.net Git - etc/vim.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Fix type annotation for gitignore pathspec (#3416)
authorIsac Byeonghoon Yoo <bhyoo@bhyoo.com>
Sat, 10 Dec 2022 15:08:05 +0000 (00:08 +0900)
committerGitHub <noreply@github.com>
Sat, 10 Dec 2022 15:08:05 +0000 (07:08 -0800)
src/black/__init__.py

index 7d7ddbe093017e80915b450a2f87a8b785c332b8..39d12968c4b15e4756fdf138fa17f68423a5005b 100644 (file)
@@ -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: