Skip to content

Commit 13a6faf

Browse files
committed
style: collapse multi-line raise ValueError to satisfy CI ruff formatter
1 parent 5c8eaab commit 13a6faf

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

toolchain/mfc/params/registry.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -233,11 +233,7 @@ def register(self, param: ParamDef) -> None:
233233
if param.name in self._params:
234234
existing = self._params[param.name]
235235
if existing.param_type != param.param_type:
236-
raise ValueError(
237-
f"Type mismatch for '{param.name}': "
238-
f"existing type is {existing.param_type!r}, "
239-
f"new type is {param.param_type!r}"
240-
)
236+
raise ValueError(f"Type mismatch for '{param.name}': existing type is {existing.param_type!r}, new type is {param.param_type!r}")
241237
existing.tags.update(param.tags)
242238
for tag in param.tags:
243239
self._by_tag[tag].add(param.name)

0 commit comments

Comments
 (0)