mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
TemplateListSpy - add repr
This commit is contained in:
@@ -200,6 +200,9 @@ class TemplateListSpy(PanelSpy):
|
||||
except:
|
||||
assert False, f"Could not set active index {index}"
|
||||
|
||||
def __repr__(self) -> str:
|
||||
return f"TemplateListSpy({self.spied_data['listtype_name']}, {len(self.items)} items, active_index={self.active_index})"
|
||||
|
||||
|
||||
class TemplateListItemSpy(PanelSpy):
|
||||
def __init__(self, parent: TemplateListSpy, item):
|
||||
|
||||
Reference in New Issue
Block a user