formatting: make ruff happy with generated code

This commit is contained in:
Johannes Kirschbauer
2024-12-06 21:06:41 +01:00
parent cd288b421c
commit b52c5beb9d
2 changed files with 4 additions and 3 deletions

View File

@@ -5,7 +5,7 @@
# ruff: noqa: N806
# ruff: noqa: F401
# fmt: off
from typing import Any, Literal, TypedDict, NotRequired
from typing import Any, Literal, NotRequired, TypedDict
class MachineDeploy(TypedDict):
@@ -33,4 +33,4 @@ class Inventory(TypedDict):
meta: NotRequired[Meta]
modules: NotRequired[dict[str, str]]
services: NotRequired[dict[str, Service]]
tags: NotRequired[dict[str, list[str]]]
tags: NotRequired[dict[str, list[str]]]

View File

@@ -350,10 +350,11 @@ def run_gen(args: argparse.Namespace) -> None:
# ruff: noqa: N806
# ruff: noqa: F401
# fmt: off
from typing import Any, Literal, TypedDict, NotRequired\n
from typing import Any, Literal, NotRequired, TypedDict\n
"""
)
f.write(dataclass_code)
f.write("\n")
def main() -> None: