Skip to content

Commit

Permalink
Use 'Union' type hint to fix build checks
Browse files Browse the repository at this point in the history
  • Loading branch information
lukehoffmann committed Jul 28, 2024
1 parent dae9102 commit cdcc023
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/fab/tools/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cdcc023

Please sign in to comment.