From e9333fd916c432436ed95af97a195a778c7fe1dd Mon Sep 17 00:00:00 2001 From: Joerg Henrichs Date: Thu, 25 Jul 2024 23:01:12 +1000 Subject: [PATCH] Removed enforcement of keyword parameters, which is not supported in python 3.7. --- source/fab/tools/compiler.py | 3 --- source/fab/tools/linker.py | 3 --- 2 files changed, 6 deletions(-) diff --git a/source/fab/tools/compiler.py b/source/fab/tools/compiler.py index 2c6af7e5..2f8b92c4 100644 --- a/source/fab/tools/compiler.py +++ b/source/fab/tools/compiler.py @@ -66,11 +66,8 @@ def openmp_flag(self) -> str: ''' return self._openmp_flag - # Note the / enforces to use keyword arguments for all remaining - # parameters. This makes sure parameters are not getting mixed up. def compile_file(self, input_file: Path, output_file: Path, - /, openmp: bool, add_flags: Union[None, List[str]] = None): '''Compiles a file. It will add the flag for compilation-only diff --git a/source/fab/tools/linker.py b/source/fab/tools/linker.py index d08c53cd..02932a18 100644 --- a/source/fab/tools/linker.py +++ b/source/fab/tools/linker.py @@ -61,10 +61,7 @@ def check_available(self) -> bool: return super().check_available() - # The / enforces that all other parameters are provided as keyword - # parameters, which avoids mistakes. def link(self, input_files: List[Path], output_file: Path, - /, openmp: bool, add_libs: Optional[List[str]] = None) -> str: '''Executes the linker with the specified input files,