X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/21c8dc85f5fa6ca70b028027a03588e12f532636..c667b85a7f8bb599f13fa169cb11a0dcc3eb9d98:/black.py?ds=inline diff --git a/black.py b/black.py index 913fe8d..a113169 100644 --- a/black.py +++ b/black.py @@ -2494,7 +2494,7 @@ def gen_python_files_in_dir(path: Path) -> Iterator[Path]: yield from gen_python_files_in_dir(child) - elif child.suffix in PYTHON_EXTENSIONS: + elif child.is_file() and child.suffix in PYTHON_EXTENSIONS: yield child