aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/build.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-07-28 11:53:39 -0700
committerNirbheek Chauhan <nirbheek@centricular.com>2021-08-10 16:06:45 +0530
commit47825f378aeea0e6c7c853987a496e0be7892c1a (patch)
tree256e94b5d86a61669b7d213ecb19767539fd4aae /mesonbuild/build.py
parent8d95e33ca436ca0c50ac0351217e15e9fee5b5e2 (diff)
downloadmeson-47825f378aeea0e6c7c853987a496e0be7892c1a.zip
meson-47825f378aeea0e6c7c853987a496e0be7892c1a.tar.gz
meson-47825f378aeea0e6c7c853987a496e0be7892c1a.tar.bz2
build: add a few annotations
I was debugging this code, these were trivial, so I added them.
Diffstat (limited to 'mesonbuild/build.py')
-rw-r--r--mesonbuild/build.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py
index 5775eb8..6fc0373 100644
--- a/mesonbuild/build.py
+++ b/mesonbuild/build.py
@@ -304,22 +304,22 @@ class Build:
def get_install_subdirs(self):
return self.install_dirs
- def get_global_args(self, compiler, for_machine):
+ def get_global_args(self, compiler: 'Compiler', for_machine: 'MachineChoice') -> T.List[str]:
d = self.global_args[for_machine]
return d.get(compiler.get_language(), [])
- def get_project_args(self, compiler, project, for_machine):
+ def get_project_args(self, compiler: 'Compiler', project: str, for_machine: 'MachineChoice') -> T.List[str]:
d = self.projects_args[for_machine]
args = d.get(project)
if not args:
return []
return args.get(compiler.get_language(), [])
- def get_global_link_args(self, compiler, for_machine):
+ def get_global_link_args(self, compiler: 'Compiler', for_machine: 'MachineChoice') -> T.List[str]:
d = self.global_link_args[for_machine]
return d.get(compiler.get_language(), [])
- def get_project_link_args(self, compiler, project, for_machine):
+ def get_project_link_args(self, compiler: 'Compiler', project: str, for_machine: 'MachineChoice') -> T.List[str]:
d = self.projects_link_args[for_machine]
link_args = d.get(project)