From cf2a11d3f5f28fecb49063171257bd6061874a08 Mon Sep 17 00:00:00 2001 From: Giacomo Tagliabue Date: Tue, 24 Sep 2019 11:59:49 -0400 Subject: [PATCH] fix --- black.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/black.py b/black.py index 320abd3ab72..3f28814fdcb 100644 --- a/black.py +++ b/black.py @@ -3454,11 +3454,11 @@ def gen_python_files( def gen_python_files_in_dir( path: Path, root: Path, - include: Pattern[str], + include: Optional[Pattern[str]], exclude: Pattern[str], report: "Report", ) -> Iterator[Path]: - return gen_python_files(path.iterdir()) + return gen_python_files(path.iterdir(), root, include, exclude, report)