Skip to content

Commit e5ce365

Browse files
committed
Format component loader after restack
Apply Ruff formatting preserved across the manifest field rename rebase. Signed-off-by: Xiaoyu Zhang <[email protected]>
1 parent 335ed97 commit e5ce365

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

‎src/mobius/_component_quantization.py‎

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,7 @@ def configure_component_quantization(
339339
tuple(
340340
other.module_attribute_path
341341
for other in manifest.values()
342-
if other.name != descriptor.name
343-
and other.module_attribute_path
342+
if other.name != descriptor.name and other.module_attribute_path
344343
)
345344
if not descriptor.module_attribute_path
346345
else ()
@@ -372,9 +371,7 @@ def _canonical_component_parameter_keys(
372371

373372
keys: set[str] = set()
374373
prefixes = {
375-
prefix
376-
for prefix in (descriptor.name, descriptor.module_attribute_path)
377-
if prefix
374+
prefix for prefix in (descriptor.name, descriptor.module_attribute_path) if prefix
378375
}
379376
for local_path, child in component_module.named_modules():
380377
if not local_path:
@@ -432,9 +429,7 @@ def owner(key: str) -> str | None:
432429
]
433430
if not matches:
434431
root_components = [
435-
name
436-
for name in component_names
437-
if not manifest[name].module_attribute_path
432+
name for name in component_names if not manifest[name].module_attribute_path
438433
]
439434
return root_components[0] if len(root_components) == 1 else None
440435
max_length = max(length for length, _ in matches)

0 commit comments

Comments
 (0)