diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2021-10-05 09:17:24 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2021-11-01 12:24:25 -0700 |
commit | fec7b2c07f2e07979880e12555015113686f69a1 (patch) | |
tree | 83961b2e9100fb0b168fc217ff725ae73b030800 /mesonbuild/interpreter/interpreter.py | |
parent | 09a1528ce0897e21c2cae1f6fd9772ce2b30cd55 (diff) | |
download | meson-fec7b2c07f2e07979880e12555015113686f69a1.zip meson-fec7b2c07f2e07979880e12555015113686f69a1.tar.gz meson-fec7b2c07f2e07979880e12555015113686f69a1.tar.bz2 |
interpreter/modules: ModuleReturnValue can hold ExecutableSerialisation
The code for this exists and works, but the type annotations don't allow
it. This fixes the annotations
Diffstat (limited to 'mesonbuild/interpreter/interpreter.py')
-rw-r--r-- | mesonbuild/interpreter/interpreter.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/interpreter/interpreter.py b/mesonbuild/interpreter/interpreter.py index fc1367f..a565305 100644 --- a/mesonbuild/interpreter/interpreter.py +++ b/mesonbuild/interpreter/interpreter.py @@ -455,7 +455,7 @@ class Interpreter(InterpreterBase, HoldableObject): held_type: holder_type }) - def process_new_values(self, invalues: T.List[TYPE_var]) -> None: + def process_new_values(self, invalues: T.List[T.Union[TYPE_var, ExecutableSerialisation]]) -> None: invalues = listify(invalues) for v in invalues: if isinstance(v, ObjectHolder): |