From 53e983785836058d9edc85574bdcdd5c1483d509 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Mon, 18 Aug 2025 11:08:55 +0500 Subject: [PATCH] fix file_dict typing (126accd6a) --- src/ifcopenshell-python/ifcopenshell/file.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ifcopenshell-python/ifcopenshell/file.py b/src/ifcopenshell-python/ifcopenshell/file.py index 0a8346bdf7..3e44b0d1e0 100644 --- a/src/ifcopenshell-python/ifcopenshell/file.py +++ b/src/ifcopenshell-python/ifcopenshell/file.py @@ -243,8 +243,9 @@ class Transaction: pass -file_dict: dict[int, weakref.ReferenceType[file]] = {} -"""Mapping of internal IfcFile pointer addressed to existing ``ifcopenshell.file``. +file_dict: dict[int, tuple[weakref.ReferenceType[file], int]] = {} +"""Mapping of internal IfcFile pointer address to existing ``ifcopenshell.file`` +and the timestamp when it was created. Needed only to quickly access related from ``entity_instance`` it's ``file``. """