mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 13:43:40 +00:00
ci-lint: black-format two files that drifted on v0.8.0
Both files were merged unformatted and fail the Black formatter step
on every branch, keeping ci-lint red repo-wide.
Generated with the assistance of an AI coding tool.
(cherry picked from commit 6014bbd877)
This commit is contained in:
committed by
Dion Moult
parent
070b7793f4
commit
a8ae234039
@@ -117,9 +117,7 @@ class UnassignType(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
related_object: str
|
related_object: str
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _reattach_styles(
|
def _reattach_styles(file: ifcopenshell.file, copied_entities: dict[int, ifcopenshell.entity_instance]) -> None:
|
||||||
file: ifcopenshell.file, copied_entities: dict[int, ifcopenshell.entity_instance]
|
|
||||||
) -> None:
|
|
||||||
"""copy_deep only follows forward references, so IfcStyledItem (an inverse,
|
"""copy_deep only follows forward references, so IfcStyledItem (an inverse,
|
||||||
``StyledByItem``) is not carried onto the copied geometry. Re-create a
|
``StyledByItem``) is not carried onto the copied geometry. Re-create a
|
||||||
styled item on each copy that points at the same presentation styles as
|
styled item on each copy that points at the same presentation styles as
|
||||||
|
|||||||
@@ -20,7 +20,9 @@ END-ISO-10303-21;
|
|||||||
|
|
||||||
|
|
||||||
def test_reference_to_undefined_owning_instance():
|
def test_reference_to_undefined_owning_instance():
|
||||||
data = "ISO-10303-21;HEADER;FILE_DESCRIPTION();FILE_NAME();FILE_SCHEMA(('IFC4'));#=IFCRELAGGREGATES((#))#5=IFCPOINT)"
|
data = (
|
||||||
|
"ISO-10303-21;HEADER;FILE_DESCRIPTION();FILE_NAME();FILE_SCHEMA(('IFC4'));#=IFCRELAGGREGATES((#))#5=IFCPOINT)"
|
||||||
|
)
|
||||||
ifcopenshell.file.from_string(data)
|
ifcopenshell.file.from_string(data)
|
||||||
print(ifcopenshell.get_log())
|
print(ifcopenshell.get_log())
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user