formatting: make ruff happy with generated code
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
# ruff: noqa: N806
|
# ruff: noqa: N806
|
||||||
# ruff: noqa: F401
|
# ruff: noqa: F401
|
||||||
# fmt: off
|
# fmt: off
|
||||||
from typing import Any, Literal, TypedDict, NotRequired
|
from typing import Any, Literal, NotRequired, TypedDict
|
||||||
|
|
||||||
|
|
||||||
class MachineDeploy(TypedDict):
|
class MachineDeploy(TypedDict):
|
||||||
|
|||||||
@@ -350,10 +350,11 @@ def run_gen(args: argparse.Namespace) -> None:
|
|||||||
# ruff: noqa: N806
|
# ruff: noqa: N806
|
||||||
# ruff: noqa: F401
|
# ruff: noqa: F401
|
||||||
# fmt: off
|
# fmt: off
|
||||||
from typing import Any, Literal, TypedDict, NotRequired\n
|
from typing import Any, Literal, NotRequired, TypedDict\n
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
f.write(dataclass_code)
|
f.write(dataclass_code)
|
||||||
|
f.write("\n")
|
||||||
|
|
||||||
|
|
||||||
def main() -> None:
|
def main() -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user