Skip to content

Commit

Permalink
Reformat code in test_config.py
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Feb 5, 2024
1 parent 766c36a commit 61e0faa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ def test_pep621_class_valid_config(
if "dependencies" in config:
config["dependencies"] = list(map(str, config["dependencies"])) # type: ignore[arg-type]
if "optional-dependencies" in config:
config["optional-dependencies"] = {
k: list(map(str, v)) # type: ignore[arg-type]
for k, v in config["optional-dependencies"].items()
}
optional_dependencies = {}
for k, v in config["optional-dependencies"].items():
optional_dependencies[k] = list(map(str, v))
config["optional-dependencies"] = optional_dependencies # tyoe: ignore[typeddict-item]

if "requires-python" in config and config["requires-python"] is not None:
config["requires-python"] = str(config["requires-python"]) # type: ignore[typeddict-item]
Expand Down

0 comments on commit 61e0faa

Please sign in to comment.