From 6c79e97eaeb889e13a6bc0b7b405a2857f4761ae Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Wed, 9 Feb 2022 18:57:09 -0500 Subject: [PATCH] add some forgotten FeatureNew annotations Forgotten in #8512. --- mesonbuild/interpreter/interpreterobjects.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mesonbuild/interpreter/interpreterobjects.py b/mesonbuild/interpreter/interpreterobjects.py index 9c2481c06..6b7cbcdd1 100644 --- a/mesonbuild/interpreter/interpreterobjects.py +++ b/mesonbuild/interpreter/interpreterobjects.py @@ -116,6 +116,7 @@ class FeatureOptionHolder(ObjectHolder[coredata.UserFeatureOption]): @noPosargs @noKwargs + @FeatureNew('feature_option.allowed()', '0.59.0') def allowed_method(self, args: T.List[TYPE_var], kwargs: TYPE_kwargs) -> bool: return self.value != 'disabled' @@ -124,6 +125,7 @@ class FeatureOptionHolder(ObjectHolder[coredata.UserFeatureOption]): def auto_method(self, args: T.List[TYPE_var], kwargs: TYPE_kwargs) -> bool: return self.value == 'auto' + @FeatureNew('feature_option.require()', '0.59.0') @typed_pos_args('feature_option.require', bool) @typed_kwargs( 'feature_option.require', @@ -140,6 +142,7 @@ class FeatureOptionHolder(ObjectHolder[coredata.UserFeatureOption]): raise InterpreterException(err_msg) return self.as_disabled() + @FeatureNew('feature_option.disable_auto_if()', '0.59.0') @noKwargs @typed_pos_args('feature_option.disable_auto_if', bool) def disable_auto_if_method(self, args: T.Tuple[bool], kwargs: TYPE_kwargs) -> coredata.UserFeatureOption: