mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
typing
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user