mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
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>
(cherry picked from commit 5a831e3d21)
This commit is contained in:
committed by
Dion Moult
parent
c2b168b45b
commit
cdd54917bc
@@ -713,7 +713,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
|
||||
|
||||
Reference in New Issue
Block a user