diff --git a/src/ifcpatch/ifcpatch/recipes/AssignConstituentFractions.py b/src/ifcpatch/ifcpatch/recipes/AssignConstituentFractions.py index 42726cb2ee..bbcde73316 100644 --- a/src/ifcpatch/ifcpatch/recipes/AssignConstituentFractions.py +++ b/src/ifcpatch/ifcpatch/recipes/AssignConstituentFractions.py @@ -17,8 +17,7 @@ class Patcher: and assigns fraction values accordingly. """ - def __init__(self, src: str, file: ifcopenshell.file, logger: Logger, *args): - self.src = src + def __init__(self, file: ifcopenshell.file, logger: Logger): self.file = file self.logger = logger diff --git a/src/ifcpatch/ifcpatch/recipes/RegenerateGlobalIds.py b/src/ifcpatch/ifcpatch/recipes/RegenerateGlobalIds.py index dec1a1db10..63c595ca9e 100644 --- a/src/ifcpatch/ifcpatch/recipes/RegenerateGlobalIds.py +++ b/src/ifcpatch/ifcpatch/recipes/RegenerateGlobalIds.py @@ -22,7 +22,7 @@ from logging import Logger class Patcher: - def __init__(self, file: ifcopenshell.file, logger: Logger, only_duplicates=False): + def __init__(self, file: ifcopenshell.file, logger: Logger, only_duplicates: bool = False): """Regenerate GlobalIds in an IFC model All root elements in an IFC model must be identified by a unique Global