mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-29 08:13:14 +00:00
b36bdf4130
Three small post-landing cleanups against the parametric framework commit: * core/model.py had `are_axes_collinear` and `closest_endpoint_midpoint` each defined twice — Python silently kept the second copy, the first was dead code. Removed the dead copies; runtime behavior unchanged (the live versions were already the kept ones). * bim/__init__.py's `_parametric_gizmo_preference_classes` docstring named the wrong link in the import chain (`tool.blender → bim.ifc`). The real chain is `tool/ifc.py` (and ~6 other tool/* modules) which import `from bonsai.bim.ifc import IfcStore` at module load. Updated docstring to cite that root cause and the architectural fix (move `IfcStore` out of `bim/`). * tool/blender.py's `from bonsai.bim.ifc import IFC_CONNECTED_TYPE` carried a 5-line comment claiming it was "lazy" to avoid a circular load. The import sits inside an `if TYPE_CHECKING:` block with `from __future__ import annotations` — it never runs at runtime regardless. Comment removed; the TYPE_CHECKING guard is self-explanatory. Generated with the assistance of an AI coding tool.