aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/mixins/clike.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-07-26 14:25:14 -0700
committerDylan Baker <dylan@pnwbakers.com>2021-08-16 16:21:51 -0700
commite9639be16790f94d759ea8467541e3a471565622 (patch)
tree65834ceb1bb7af8799e75a1ceb6c7fe3312bf26e /mesonbuild/compilers/mixins/clike.py
parent32d3b5c9e2d17b6cfc2a3fa4e3f5225d927abe03 (diff)
downloadmeson-e9639be16790f94d759ea8467541e3a471565622.zip
meson-e9639be16790f94d759ea8467541e3a471565622.tar.gz
meson-e9639be16790f94d759ea8467541e3a471565622.tar.bz2
compilers: Fix annotations for run and cached_compile
Which absolutely should accept `str | File`, but the annotations claim that only strings are accepted.
Diffstat (limited to 'mesonbuild/compilers/mixins/clike.py')
-rw-r--r--mesonbuild/compilers/mixins/clike.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/compilers/mixins/clike.py b/mesonbuild/compilers/mixins/clike.py
index 09ad837..623a17a 100644
--- a/mesonbuild/compilers/mixins/clike.py
+++ b/mesonbuild/compilers/mixins/clike.py
@@ -462,7 +462,7 @@ class CLikeCompiler(Compiler):
args = cargs + extra_args + largs
return args
- def run(self, code: str, env: 'Environment', *,
+ def run(self, code: 'mesonlib.FileOrString', env: 'Environment', *,
extra_args: T.Optional[T.List[str]] = None,
dependencies: T.Optional[T.List['Dependency']] = None) -> compilers.RunResult:
need_exe_wrapper = env.need_exe_wrapper(self.for_machine)