aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/interpreter/kwargs.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-12-06 15:12:40 -0800
committerEli Schwartz <eschwartz93@gmail.com>2022-01-18 17:53:29 -0500
commit574525673f6b00535f916d7230ef7e4a3d58bc2c (patch)
tree82b69366157436a31bb32816da9d25a988d75b86 /mesonbuild/interpreter/kwargs.py
parent7641bfd0cee6daf320b98f7d1bf37e5b0c109a10 (diff)
downloadmeson-574525673f6b00535f916d7230ef7e4a3d58bc2c.zip
meson-574525673f6b00535f916d7230ef7e4a3d58bc2c.tar.gz
meson-574525673f6b00535f916d7230ef7e4a3d58bc2c.tar.bz2
interpreterobjects: use typed_* for configuration_data.set*
This removes the ability to use ConfigurationData as a dict, but restricting the inputs to `str | int | bool`. This may be a little too soon for this, and we may want to wait on that part, it's only bee 8 months since we started warning about this.
Diffstat (limited to 'mesonbuild/interpreter/kwargs.py')
-rw-r--r--mesonbuild/interpreter/kwargs.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/mesonbuild/interpreter/kwargs.py b/mesonbuild/interpreter/kwargs.py
index 8a88375..777db12 100644
--- a/mesonbuild/interpreter/kwargs.py
+++ b/mesonbuild/interpreter/kwargs.py
@@ -261,3 +261,8 @@ class DependencyGetVariable(TypedDict):
internal: T.Optional[str]
default_value: T.Optional[str]
pkgconfig_define: T.List[str]
+
+
+class ConfigurationDataSet(TypedDict):
+
+ description: T.Optional[str]