diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2021-07-28 11:53:39 -0700 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2021-08-09 19:44:49 -0400 |
commit | 8a7451e051240b3b36b057fb2cbb3c60c9fdf493 (patch) | |
tree | e51789ad032c78e36823bf7f4072097ee0a63215 /mesonbuild | |
parent | 223991c09e9c568f0e45f6c5c1918122af7d2776 (diff) | |
download | meson-8a7451e051240b3b36b057fb2cbb3c60c9fdf493.zip meson-8a7451e051240b3b36b057fb2cbb3c60c9fdf493.tar.gz meson-8a7451e051240b3b36b057fb2cbb3c60c9fdf493.tar.bz2 |
build: add a few annotations
I was debugging this code, these were trivial, so I added them.
Diffstat (limited to 'mesonbuild')
-rw-r--r-- | mesonbuild/build.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py index 98954ab..a48b057 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) |