mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 05:10:53 +00:00
typing
This commit is contained in:
@@ -55,7 +55,7 @@ if has_occ:
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
from OCC import TopoDS
|
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):
|
if getattr(settings, "use_python_opencascade", False):
|
||||||
return utils.create_shape_from_serialization(shape)
|
return utils.create_shape_from_serialization(shape)
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -313,7 +313,10 @@ class Iterator:
|
|||||||
def create(self): ...
|
def create(self): ...
|
||||||
def file(self): ...
|
def file(self): ...
|
||||||
def filters(self, *args): ...
|
def filters(self, *args): ...
|
||||||
def get(self): ...
|
def get(self) -> Element:
|
||||||
|
"""Get last processed element."""
|
||||||
|
...
|
||||||
|
|
||||||
def getLog(self): ...
|
def getLog(self): ...
|
||||||
def get_native(self): ...
|
def get_native(self): ...
|
||||||
def get_object(self, id): ...
|
def get_object(self, id): ...
|
||||||
@@ -322,7 +325,14 @@ class Iterator:
|
|||||||
"""Return true if the iterator is initialized with any elements, false otherwise."""
|
"""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_concurrently(self): ...
|
||||||
def process_finished_rep(self, rep): ...
|
def process_finished_rep(self, rep): ...
|
||||||
def progress(self) -> int:
|
def progress(self) -> int:
|
||||||
|
|||||||
Reference in New Issue
Block a user