mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +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)
|
||||
if building_obj and building_obj.data:
|
||||
representation = tool.Geometry.get_active_representation(building_obj)
|
||||
assert representation
|
||||
bonsai.core.geometry.switch_representation(
|
||||
tool.Ifc,
|
||||
tool.Geometry,
|
||||
|
||||
@@ -1047,7 +1047,7 @@ class Restriction:
|
||||
|
||||
|
||||
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.reason = reason
|
||||
|
||||
|
||||
Reference in New Issue
Block a user