diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-05-07 14:10:51 +0200 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2025-05-07 09:43:43 -0700 |
| commit | c1b7ef4218f12905641f1cb1503c8b9b3542e983 (patch) | |
| tree | 48f8fd9e8501b9867aa75505ae60207fa8e39624 /mesonbuild/utils | |
| parent | a46371f6d8c01953d8d8bd3d8e86594cc3c8e37f (diff) | |
| download | meson-c1b7ef4218f12905641f1cb1503c8b9b3542e983.tar.gz | |
options: fix "deprecated" with dictionary argument and non-string types
Since opt.deprecated is a dictionary with string keys, the lookup must use
str() around the user-provided value; with some care because booleans
will be the meson-ic 'true' and 'false' instead of Python's 'True' and
'False'.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'mesonbuild/utils')
| -rw-r--r-- | mesonbuild/utils/universal.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/utils/universal.py b/mesonbuild/utils/universal.py index 5b3f131af..d165bf54d 100644 --- a/mesonbuild/utils/universal.py +++ b/mesonbuild/utils/universal.py @@ -1578,7 +1578,7 @@ def listify(item: T.Any, flatten: bool = True) -> T.List[T.Any]: result.append(i) return result -def listify_array_value(value: T.Union[str, T.List[str]], shlex_split_args: bool = False) -> T.List[str]: +def listify_array_value(value: object, shlex_split_args: bool = False) -> T.List[str]: if isinstance(value, str): if value.startswith('['): try: |
