diff options
| author | Eli Schwartz <eschwartz@archlinux.org> | 2023-07-23 12:57:06 -0400 |
|---|---|---|
| committer | Eli Schwartz <eschwartz@archlinux.org> | 2023-07-24 14:25:33 -0400 |
| commit | 59af1d902616563383fe06a6ddb50bddb4de54bc (patch) | |
| tree | e71705673fd4bba8802ee1b1028572ccda51a8d7 /mesonbuild/interpreterbase | |
| parent | db0d579c7962ce026dc256cdf39eefbf6bfb6c1e (diff) | |
| download | meson-59af1d902616563383fe06a6ddb50bddb4de54bc.tar.gz | |
force interpreter functions to actually receive tuple from typed posargs
We always expect the args parameter in the wrapped function to
eventually receive a tuple due to reasons. But in one specific optargs
condition we passed it along without any fixup at all.
Diffstat (limited to 'mesonbuild/interpreterbase')
| -rw-r--r-- | mesonbuild/interpreterbase/decorators.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/interpreterbase/decorators.py b/mesonbuild/interpreterbase/decorators.py index 10683fdbf..cecdbfdfd 100644 --- a/mesonbuild/interpreterbase/decorators.py +++ b/mesonbuild/interpreterbase/decorators.py @@ -270,7 +270,7 @@ def typed_pos_args(name: str, *types: T.Union[T.Type, T.Tuple[T.Type, ...]], diff = num_types + len(optargs) - num_args nargs[i] = tuple(list(args) + [None] * diff) else: - nargs[i] = args + nargs[i] = tuple(args) else: nargs[i] = tuple(args) return f(*nargs, **wrapped_kwargs) |
