Skip to content

Commit ddbee74

Browse files
committed
quiet some warnings
1 parent dd5d899 commit ddbee74

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

schema_salad/dlang_codegen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def prologue(self) -> None:
8585
{{
8686
mixin genCtor_!saladVersion;
8787
}}
88-
"""
88+
""" # noqa: B907
8989
)
9090

9191
def epilogue(self, root_loader: TypeDef) -> None:

schema_salad/python_codegen.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,8 @@ def typedsl_loader(self, inner: TypeDef, ref_scope: Optional[int]) -> TypeDef:
631631
return self.declare_type(
632632
TypeDef(
633633
f"typedsl_{self.safe_name(inner.name)}_{ref_scope}",
634-
f"_TypeDSLLoader({self.safe_name(inner.name)}, {ref_scope}, '{self.salad_version}')",
634+
f"_TypeDSLLoader({self.safe_name(inner.name)}, {ref_scope}, " # noqa: B907
635+
f"'{self.salad_version}')",
635636
)
636637
)
637638

0 commit comments

Comments
 (0)