Skip to content

Commit 2b2ffab

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 5ad39cd commit 2b2ffab

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

mypy/config_parser.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -399,10 +399,7 @@ def is_pyproject(filename: str) -> bool:
399399
return os.path.basename(filename) == "pyproject.toml"
400400

401401

402-
def get_mypy_toml_data(
403-
config_file: str,
404-
toml_data: dict[str, Any],
405-
) -> dict[str, Any] | None:
402+
def get_mypy_toml_data(config_file: str, toml_data: dict[str, Any]) -> dict[str, Any] | None:
406403
if is_pyproject(config_file):
407404
toml_data = toml_data.get("tool", {})
408405
if "mypy" not in toml_data:
@@ -464,7 +461,7 @@ def destructure_overrides(toml_data: dict[str, Any], config_file: str) -> dict[s
464461
config_file,
465462
"{prefix}.overrides sections must be an array. Please make "
466463
"sure you are using double brackets like so: {override}",
467-
),
464+
)
468465
)
469466

470467
result = toml_data.copy()
@@ -475,7 +472,7 @@ def destructure_overrides(toml_data: dict[str, Any], config_file: str) -> dict[s
475472
config_file,
476473
"toml config file contains a {override} section, but no module to "
477474
"override was specified.",
478-
),
475+
)
479476
)
480477

481478
if isinstance(override["module"], str):
@@ -488,7 +485,7 @@ def destructure_overrides(toml_data: dict[str, Any], config_file: str) -> dict[s
488485
config_file,
489486
"toml config file contains a {override} section with a module value "
490487
"that is not a string or a list of strings",
491-
),
488+
)
492489
)
493490

494491
for module in modules:
@@ -509,7 +506,7 @@ def destructure_overrides(toml_data: dict[str, Any], config_file: str) -> dict[s
509506
"toml config file contains {override} sections with "
510507
f"conflicting values. Module '{module}' has "
511508
f"two different values for '{new_key}'",
512-
),
509+
)
513510
)
514511
result[old_config_name][new_key] = new_value
515512

0 commit comments

Comments
 (0)