From 2a8804cb52e0134495ec7276d10a8ac2cd1c8133 Mon Sep 17 00:00:00 2001 From: hauntsaninja Date: Fri, 18 Aug 2023 20:54:12 -0700 Subject: [PATCH] fix --- src/black/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/black/__init__.py b/src/black/__init__.py index 380d48ed815..dc06eab8dd0 100644 --- a/src/black/__init__.py +++ b/src/black/__init__.py @@ -628,7 +628,7 @@ def get_sources( ) -> Set[Path]: """Compute the set of files to be formatted.""" sources: Set[Path] = set() - root: Path = ctx.obj["root"] + root = ctx.obj["root"] using_default_exclude = exclude is None exclude = re_compile_maybe_verbose(DEFAULT_EXCLUDES) if exclude is None else exclude