diff --git a/src/black/__init__.py b/src/black/__init__.py index 0800f74c4fe..71823e001fe 100644 --- a/src/black/__init__.py +++ b/src/black/__init__.py @@ -652,7 +652,7 @@ def get_sources( ) continue - normalized_path = normalize_path_maybe_ignore(path, root, report) + normalized_path: str | None = normalize_path_maybe_ignore(path, root, report) if normalized_path is None: if verbose: out(f'Skipping invalid source: "{normalized_path}"', fg="red")