From fe93339a3f765353f32687bae429674c5344588c Mon Sep 17 00:00:00 2001 From: Joerg Henrichs Date: Tue, 3 Dec 2024 13:53:35 +1100 Subject: [PATCH] Fixed mypy. --- source/fab/tools/linker.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/fab/tools/linker.py b/source/fab/tools/linker.py index 4bd962cf..8579df2c 100644 --- a/source/fab/tools/linker.py +++ b/source/fab/tools/linker.py @@ -76,7 +76,10 @@ def check_available(self) -> bool: ''':returns: whether this linker is available by asking the wrapped linker or compiler. ''' - return (self._compiler or self._linker).check_available() + if self._compiler: + return self._compiler.check_available() + assert self._linker # make mypy ghappy + return self._linker.check_available() def get_exec_name(self) -> str: ''':returns: the name of the executable by asking the wrapped