From 00c627459485c021915864185578753f33454168 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 17 Jan 2025 10:42:47 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- mypy/config_parser.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mypy/config_parser.py b/mypy/config_parser.py index 33e00ca00035..e1732c7994e8 100644 --- a/mypy/config_parser.py +++ b/mypy/config_parser.py @@ -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 @@ -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): @@ -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)