This commit is contained in:
Andrej730
2024-03-04 15:46:36 +05:00
parent a2fdd93e6b
commit b7e26bacea
3 changed files with 49 additions and 22 deletions
+3 -2
View File
@@ -25,9 +25,10 @@ import typing
import inspect
import collections
import importlib
from typing import Union
def execute(args):
def execute(args: dict) -> Union[ifcopenshell.file, str]:
"""Execute a patch recipe
The details of how the patch recipe is executed depends on the definition of
@@ -80,7 +81,7 @@ def execute(args):
return output
def write(output, filepath):
def write(output: Union[ifcopenshell.file, str], filepath: str) -> None:
"""Write the output of an IFC patch to a file
Typically a patch output would be a patched IFC model file object, or as a