aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2023-07-23 12:49:29 -0400
committerEli Schwartz <eschwartz@archlinux.org>2023-07-24 14:25:33 -0400
commitdb0d579c7962ce026dc256cdf39eefbf6bfb6c1e (patch)
treeb3d9cef1937c487a27ecf6531aac5e6a9c59d916
parenta7a3563c0d9d5a0e56174634032df380ef664016 (diff)
downloadmeson-db0d579c7962ce026dc256cdf39eefbf6bfb6c1e.zip
meson-db0d579c7962ce026dc256cdf39eefbf6bfb6c1e.tar.gz
meson-db0d579c7962ce026dc256cdf39eefbf6bfb6c1e.tar.bz2
interpreter: fix typing for adding tests
We know exactly what type we need, since the interpreter function is correctly typed and thinly wraps over this. But we didn't even get the container type correct. :(
-rw-r--r--mesonbuild/interpreter/interpreter.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/mesonbuild/interpreter/interpreter.py b/mesonbuild/interpreter/interpreter.py
index 5c3ef82..f12a059 100644
--- a/mesonbuild/interpreter/interpreter.py
+++ b/mesonbuild/interpreter/interpreter.py
@@ -2216,7 +2216,9 @@ class Interpreter(InterpreterBase, HoldableObject):
kwargs['priority'],
kwargs['verbose'])
- def add_test(self, node: mparser.BaseNode, args: T.List, kwargs: T.Dict[str, T.Any], is_base_test: bool):
+ def add_test(self, node: mparser.BaseNode,
+ args: T.Tuple[str, T.Union[build.Executable, build.Jar, ExternalProgram, mesonlib.File]],
+ kwargs: T.Dict[str, T.Any], is_base_test: bool):
t = self.make_test(node, args, kwargs)
if is_base_test:
self.build.tests.append(t)