From 93e370c7ddbbc18d94bf0c6d24e24fc2cd9c98da Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Tue, 17 Jan 2023 13:36:20 -0800 Subject: 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` --- mesonbuild/optinterpreter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesonbuild/optinterpreter.py') diff --git a/mesonbuild/optinterpreter.py b/mesonbuild/optinterpreter.py index 549d56473..00f63e193 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))), -- cgit v1.2.3