Fix ci-lint: black-format selector.py

black (the version CI's psf/black@stable resolves to) flags three spots
in util/selector.py: the chained .replace() in FormatTransformer.number,
the suppress_zero_inches kwarg in format_length, and the long
`elif key in (...) and hasattr(...)` placement-key tuple in
set_element_value. Reformat all three to black's multi-line style.
Formatting only, no behavioural change (all keys preserved).

This change was made with the assistance of an AI tool.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Petru Conduraru
2026-07-13 07:02:13 +03:00
committed by Dion Moult
parent d30286225c
commit 5a831e3d21
@@ -707,7 +707,17 @@ def set_element_value(
return
elif key == "classification":
element = ifcopenshell.util.classification.get_references(element)
elif key in ("x", "y", "z", "easting", "northing", "elevation", "rotation_x", "rotation_y", "rotation_z") and hasattr(element, "ObjectPlacement"):
elif key in (
"x",
"y",
"z",
"easting",
"northing",
"elevation",
"rotation_x",
"rotation_y",
"rotation_z",
) and hasattr(element, "ObjectPlacement"):
# TODO: add support
if key in ("easting", "northing", "elevation", "rotation_x", "rotation_y", "rotation_z"):
return