Skip to content

Commit

Permalink
Fixed mypy.
Browse files Browse the repository at this point in the history
  • Loading branch information
hiker committed Dec 3, 2024
1 parent d084f20 commit fe93339
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/fab/tools/linker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fe93339

Please sign in to comment.