From 940fc372dbe8a7e28a4868be51b15c85a0630365 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Tue, 10 Aug 2021 15:18:28 -0700 Subject: [PATCH] interperter/kwargs: narrow type checking Since the convertor has been added env, we are now only going to be an EnvironmentVariables object, nothing else. --- mesonbuild/interpreter/kwargs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/interpreter/kwargs.py b/mesonbuild/interpreter/kwargs.py index 77826cbec..9eb02be57 100644 --- a/mesonbuild/interpreter/kwargs.py +++ b/mesonbuild/interpreter/kwargs.py @@ -39,7 +39,7 @@ class BaseTest(TypedDict): workdir: T.Optional[str] depends: T.List[T.Union[build.CustomTarget, build.BuildTarget]] priority: int - env: T.Union[EnvironmentVariablesObject, T.List[str], T.Dict[str, str], str] + env: EnvironmentVariablesObject suite: T.List[str]