From c18d2e8c17bea2207220cdd402ef828a4c9e4bbd Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Tue, 22 Oct 2024 17:40:03 +0500 Subject: [PATCH] ifcopenshell.file - store default history_size in class instead of instance --- src/ifcopenshell-python/ifcopenshell/file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/ifcopenshell/file.py b/src/ifcopenshell-python/ifcopenshell/file.py index 2a7777d8cf..f08eea3541 100644 --- a/src/ifcopenshell-python/ifcopenshell/file.py +++ b/src/ifcopenshell-python/ifcopenshell/file.py @@ -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