Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 17, 2025
1 parent 450de8a commit 00c6274
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mypy/config_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
else:
import tomli as tomllib

from collections.abc import Iterable, Mapping, MutableMapping, Sequence
from collections.abc import Mapping, MutableMapping, Sequence
from typing import Any, Callable, Final, TextIO, Union
from typing_extensions import TypeAlias as _TypeAlias

Expand Down Expand Up @@ -216,8 +216,9 @@ def split_commas(value: str) -> list[str]:
}
)


def _maybe_parse_individual_file(
config_file: str, stderr: TextIO | None = None,
config_file: str, stderr: TextIO | None = None
) -> tuple[MutableMapping[str, Any], dict[str, _INI_PARSER_CALLABLE], str] | None:

if not os.path.exists(config_file):
Expand Down Expand Up @@ -266,8 +267,7 @@ def _find_config_file(
return ret

if any(
os.path.exists(os.path.join(current_dir, cvs_root))
for cvs_root in (".git", ".hg")
os.path.exists(os.path.join(current_dir, cvs_root)) for cvs_root in (".git", ".hg")
):
break
parent_dir = os.path.dirname(current_dir)
Expand Down

0 comments on commit 00c6274

Please sign in to comment.