add some forgotten FeatureNew annotations

Forgotten in #8512.
pull/9981/head
Eli Schwartz 3 years ago
parent 3ca61a6aa7
commit 6c79e97eae
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
  1. 3
      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:

Loading…
Cancel
Save