ifcopenshell_wrapper.pyi - remove HeaderEntity

Recently (e.g. ce02e7a) header entity was replaced with a generic `entity_instance`.
This commit is contained in:
Andrej730
2025-09-15 16:32:31 +05:00
parent 87069f3ac3
commit a3c6e295c8
@@ -89,28 +89,19 @@ SHARED_PTR_DISOWN: Any
cvar: Any cvar: Any
class FileDescription(HeaderEntity):
description: tuple[str, ...]
implementation_level: str
class FileName(HeaderEntity):
name: str
"""Updated automatically only on ``file.write``."""
time_stamp: str
author: tuple[str, ...]
organization: tuple[str, ...]
preprocessor_version: str
originating_system: str
authorization: str
class IfcSpfHeader: class IfcSpfHeader:
"""
IFC Header definition:
https://standards.buildingsmart.org/documents/Implementation/ImplementationGuide_IFCHeaderData_Version_1.0.2.pdf
"""
def file(self, *args): ... def file(self, *args): ...
@property @property
def file_description(self) -> FileDescription: ... def file_description(self) -> ifcopenshell.entity_instance: ...
@property @property
def file_name(self) -> FileName: ... def file_name(self) -> ifcopenshell.entity_instance: ...
@property @property
def file_schema(self): ... def file_schema(self) -> ifcopenshell.entity_instance: ...
def read(self): ... def read(self): ...
def tryRead(self): ... def tryRead(self): ...
def write(self, out): ... def write(self, out): ...
@@ -262,9 +253,6 @@ class Element:
""" """
... ...
class FileSchema(HeaderEntity):
schema_identifiers: Any
class GeometrySerializer: class GeometrySerializer:
READ_BREP: Any READ_BREP: Any
READ_TRIANGULATION: Any READ_TRIANGULATION: Any
@@ -975,8 +963,9 @@ class file:
def good(self): ... def good(self): ...
@staticmethod @staticmethod
def guid_map(*args): ... def guid_map(*args): ...
@property def header(self) -> IfcSpfHeader:
def header(self) -> IfcSpfHeader: ... """Internal IfcSpfHeader instance, always prefer ``ifcopenshell.file.header`` instead."""
def ifcroot_type(self) -> entity: ... def ifcroot_type(self) -> entity: ...
def internal_guid_map(self): ... def internal_guid_map(self): ...
def load(self, entity_instance_name, entity, arg4, attribute_index): ... def load(self, entity_instance_name, entity, arg4, attribute_index): ...