From c4605f2a8fd16e47ff053da7f05c2735d99133d8 Mon Sep 17 00:00:00 2001 From: Stephen Boddy Date: Fri, 10 Jul 2026 22:21:23 +0100 Subject: [PATCH] Fix lint drift introduced by merging v0.8.0 into lint-pass - add_stationing_referent.py: black reformat (new drift from v0.8.0). - update_fallback_position.py: v0.8.0's changes to this file made the ifcopenshell.util.unit import (added in an earlier commit here) unused; removed per ruff. --- .../ifcopenshell/api/alignment/add_stationing_referent.py | 6 +++++- .../ifcopenshell/api/alignment/update_fallback_position.py | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ifcopenshell-python/ifcopenshell/api/alignment/add_stationing_referent.py b/src/ifcopenshell-python/ifcopenshell/api/alignment/add_stationing_referent.py index 621712e093..6c81234894 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/alignment/add_stationing_referent.py +++ b/src/ifcopenshell-python/ifcopenshell/api/alignment/add_stationing_referent.py @@ -58,7 +58,11 @@ def add_stationing_referent( if on_basis_curve is None: on_basis_curve = True - curve = ifcopenshell.api.alignment.get_basis_curve(alignment) if on_basis_curve else ifcopenshell.api.alignment.get_curve(alignment) + curve = ( + ifcopenshell.api.alignment.get_basis_curve(alignment) + if on_basis_curve + else ifcopenshell.api.alignment.get_curve(alignment) + ) object_placement = None representation = None diff --git a/src/ifcopenshell-python/ifcopenshell/api/alignment/update_fallback_position.py b/src/ifcopenshell-python/ifcopenshell/api/alignment/update_fallback_position.py index c13b7a725f..431d19fc86 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/alignment/update_fallback_position.py +++ b/src/ifcopenshell-python/ifcopenshell/api/alignment/update_fallback_position.py @@ -18,7 +18,6 @@ import ifcopenshell import ifcopenshell.util.placement -import ifcopenshell.util.unit from ifcopenshell import entity_instance