Add tests for PR #5257 (using cache for fetching units)

This commit is contained in:
Dion Moult
2025-01-27 14:40:15 +11:00
parent c0aaebcbe9
commit 3582dc43d9
3 changed files with 148 additions and 7 deletions
+1 -2
View File
@@ -222,7 +222,7 @@ class file:
"""
wrapped_data: ifcopenshell_wrapper.file
units: dict[str: ifcopenshell.entity_instance] = None
units: dict[str, entity_instance] = {}
history_size: int = 64
def __init__(
@@ -358,7 +358,6 @@ class file:
:param args: The positional arguments of the IFC class
:param kwargs: The keyword arguments of the IFC class
:returns: An entity instance
:rtype: ifcopenshell.entity_instance
Example: