Python import fixes: import from wrapper now which inherits from mixins

This commit is contained in:
Thomas Krijnen
2026-04-21 21:59:02 +02:00
parent 18363c0d19
commit 89c66f62bf
3 changed files with 4 additions and 7 deletions
+1 -2
View File
@@ -35,7 +35,6 @@ import ifcopenshell
from ifcopenshell.util.mvd_info import LARK_AVAILABLE, MvdInfo
from . import ifcopenshell_wrapper
from .entity_instance import entity_instance
if TYPE_CHECKING:
import ifcopenshell.util.schema
@@ -702,7 +701,7 @@ class file_mixin:
else:
raise AttributeError
def __getitem__(self, key: Union[numbers.Integral, str, bytes]) -> entity_instance:
def __getitem__(self, key: Union[numbers.Integral, str, bytes]) -> ifcopenshell.entity_instance:
if isinstance(key, numbers.Integral):
return self.by_id(key)
elif isinstance(key, (str, bytes)):