ifcopenshell.file - store default history_size in class instead of instance

This commit is contained in:
Andrej730
2024-10-22 17:40:03 +05:00
parent 70521b1020
commit c18d2e8c17
+1 -1
View File
@@ -216,6 +216,7 @@ class file:
"""
wrapped_data: ifcopenshell_wrapper.file
history_size: int = 64
def __init__(
self,
@@ -286,7 +287,6 @@ class file:
args = filter(None, [schema])
args = map(ifcopenshell_wrapper.schema_by_name, args)
self.wrapped_data = ifcopenshell_wrapper.file(*args)
self.history_size = 64
self.history = []
self.future = []
self.transaction: Optional[Transaction] = None