From cdcc02354e70ace66db37c36282308a4087a8b0e Mon Sep 17 00:00:00 2001 From: Luke Hoffmann Date: Mon, 29 Jul 2024 08:54:18 +1000 Subject: [PATCH] Use 'Union' type hint to fix build checks --- source/fab/tools/compiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/fab/tools/compiler.py b/source/fab/tools/compiler.py index e451e288..b59512dd 100644 --- a/source/fab/tools/compiler.py +++ b/source/fab/tools/compiler.py @@ -46,7 +46,7 @@ def __init__(self, name: str, output_flag: Optional[str] = None, omp_flag: Optional[str] = None): super().__init__(name, exec_name, suite, category) - self._version: Tuple[int, ...] | None = None + self._version: Union[Tuple[int, ...], None] = None self._compile_flag = compile_flag if compile_flag else "-c" self._output_flag = output_flag if output_flag else "-o" self._omp_flag = omp_flag