aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/optinterpreter.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2023-01-17 13:36:20 -0800
committerEli Schwartz <eschwartz93@gmail.com>2023-01-20 00:18:42 -0500
commit93e370c7ddbbc18d94bf0c6d24e24fc2cd9c98da (patch)
tree2e5a8ffabafff7e7b7f4ba0af7dbbeb9df551ab0 /mesonbuild/optinterpreter.py
parent3f733437daee4f391fdae9b51540c699e3ff6795 (diff)
downloadmeson-93e370c7ddbbc18d94bf0c6d24e24fc2cd9c98da.zip
meson-93e370c7ddbbc18d94bf0c6d24e24fc2cd9c98da.tar.gz
meson-93e370c7ddbbc18d94bf0c6d24e24fc2cd9c98da.tar.bz2
coredata: use DEFAULT_YIELDING as the default value for Options
Instead of setting it to `Optional[bool] = None`, and then in the initializer replacing `None` with `DEFAULT_YIELDING`, just set to to `bool = DEFAULT_YIELDING`
Diffstat (limited to 'mesonbuild/optinterpreter.py')
-rw-r--r--mesonbuild/optinterpreter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/optinterpreter.py b/mesonbuild/optinterpreter.py
index 549d564..00f63e1 100644
--- a/mesonbuild/optinterpreter.py
+++ b/mesonbuild/optinterpreter.py
@@ -148,7 +148,7 @@ class OptionInterpreter:
@typed_kwargs('option',
KwargInfo('type', str, required=True),
KwargInfo('description', str, default=''),
- KwargInfo('yield', bool, default=coredata.default_yielding, since='0.45.0'),
+ KwargInfo('yield', bool, default=coredata.DEFAULT_YIELDING, since='0.45.0'),
KwargInfo('choices', (ContainerTypeInfo(list, str), type(None))),
KwargInfo('value', object),
KwargInfo('min', (int, type(None))),