mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 14:41:25 +00:00
typing
This commit is contained in:
@@ -187,6 +187,7 @@ class RemoveOpening(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
building_obj = tool.Ifc.get_object(building_element)
|
building_obj = tool.Ifc.get_object(building_element)
|
||||||
if building_obj and building_obj.data:
|
if building_obj and building_obj.data:
|
||||||
representation = tool.Geometry.get_active_representation(building_obj)
|
representation = tool.Geometry.get_active_representation(building_obj)
|
||||||
|
assert representation
|
||||||
bonsai.core.geometry.switch_representation(
|
bonsai.core.geometry.switch_representation(
|
||||||
tool.Ifc,
|
tool.Ifc,
|
||||||
tool.Geometry,
|
tool.Geometry,
|
||||||
|
|||||||
@@ -1047,7 +1047,7 @@ class Restriction:
|
|||||||
|
|
||||||
|
|
||||||
class Result:
|
class Result:
|
||||||
def __init__(self, is_pass, reason=None):
|
def __init__(self, is_pass: bool, reason: Optional[dict[str, Any]] = None):
|
||||||
self.is_pass = is_pass
|
self.is_pass = is_pass
|
||||||
self.reason = reason
|
self.reason = reason
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user