mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-29 08:13:14 +00:00
typing
This commit is contained in:
@@ -707,7 +707,7 @@ class Blender(bonsai.core.tool.Blender):
|
||||
if not tool.Ifc.get():
|
||||
return False
|
||||
element = tool.Ifc.get_entity(obj)
|
||||
return element and element.is_a() in classes
|
||||
return bool(element) and element.is_a() in classes
|
||||
|
||||
@classmethod
|
||||
def get_object_from_guid(cls, guid: str) -> Union[IFC_CONNECTED_TYPE, None]:
|
||||
|
||||
Reference in New Issue
Block a user