aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/linkers/linkers.py
diff options
context:
space:
mode:
authorTristan Partin <tristan@partin.io>2023-07-12 18:15:27 -0500
committerTristan Partin <tristan@partin.io>2023-07-12 18:56:06 -0500
commit24edddb412dfa6cbf48d1c31b73d4d4903aa0fa0 (patch)
treeefa442620e0d259914b04dc1ea8743169439e302 /mesonbuild/linkers/linkers.py
parentffa54835642e2be849c7203f9cba831dde1e1c00 (diff)
downloadmeson-24edddb412dfa6cbf48d1c31b73d4d4903aa0fa0.zip
meson-24edddb412dfa6cbf48d1c31b73d4d4903aa0fa0.tar.gz
meson-24edddb412dfa6cbf48d1c31b73d4d4903aa0fa0.tar.bz2
Fix return type of debugfile functions
It was returning None in some cases while being marked as returning string.
Diffstat (limited to 'mesonbuild/linkers/linkers.py')
-rw-r--r--mesonbuild/linkers/linkers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/linkers/linkers.py b/mesonbuild/linkers/linkers.py
index 609308b..8f413c8 100644
--- a/mesonbuild/linkers/linkers.py
+++ b/mesonbuild/linkers/linkers.py
@@ -86,7 +86,7 @@ class StaticLinker:
def native_args_to_unix(cls, args: T.List[str]) -> T.List[str]:
return args[:]
- def get_link_debugfile_name(self, targetfile: str) -> str:
+ def get_link_debugfile_name(self, targetfile: str) -> T.Optional[str]:
return None
def get_link_debugfile_args(self, targetfile: str) -> T.List[str]:
@@ -428,7 +428,7 @@ class DynamicLinker(metaclass=abc.ABCMeta):
def has_multi_arguments(self, args: T.List[str], env: 'Environment') -> T.Tuple[bool, bool]:
raise EnvironmentException(f'Language {self.id} does not support has_multi_link_arguments.')
- def get_debugfile_name(self, targetfile: str) -> str:
+ def get_debugfile_name(self, targetfile: str) -> T.Optional[str]:
'''Name of debug file written out (see below)'''
return None