This commit is contained in:
Andrej730
2025-07-03 17:17:54 +05:00
parent 207db459a7
commit b97dca5d47
2 changed files with 13 additions and 3 deletions
@@ -55,7 +55,7 @@ if has_occ:
except ImportError:
from OCC import TopoDS
def wrap_shape_creation(settings, shape):
def wrap_shape_creation(settings: settings, shape: ifcopenshell_wrapper.Element):
if getattr(settings, "use_python_opencascade", False):
return utils.create_shape_from_serialization(shape)
else:
@@ -313,7 +313,10 @@ class Iterator:
def create(self): ...
def file(self): ...
def filters(self, *args): ...
def get(self): ...
def get(self) -> Element:
"""Get last processed element."""
...
def getLog(self): ...
def get_native(self): ...
def get_object(self, id): ...
@@ -322,7 +325,14 @@ class Iterator:
"""Return true if the iterator is initialized with any elements, false otherwise."""
...
def next(self): ...
def next(self) -> Union[entity_instance, None]:
"""Process next shape representation.
:return: Processed ``entity_instance`` or ``None`` if nothing is left to process.
"""
...
def process_concurrently(self): ...
def process_finished_rep(self, rep): ...
def progress(self) -> int: