diff options
-rw-r--r-- | .pylintrc | 5 | ||||
-rw-r--r-- | mesonbuild/interpreter/interpreterobjects.py | 2 |
2 files changed, 4 insertions, 3 deletions
@@ -10,6 +10,7 @@ enable= abstract-class-instantiated, assert-on-tuple, bad-indentation, + bare-except, compare-to-zero, dangerous-default-value, deprecated-lambda, @@ -22,5 +23,5 @@ enable= singleton-comparison, too-many-function-args, unexpected-keyword-arg, - unreachable, - bare-except + unneeded-not, + unreachable diff --git a/mesonbuild/interpreter/interpreterobjects.py b/mesonbuild/interpreter/interpreterobjects.py index 262ff87..b0fe512 100644 --- a/mesonbuild/interpreter/interpreterobjects.py +++ b/mesonbuild/interpreter/interpreterobjects.py @@ -117,7 +117,7 @@ class FeatureOptionHolder(ObjectHolder[coredata.UserFeatureOption]): @noPosargs @noKwargs def allowed_method(self, args: T.List[TYPE_var], kwargs: TYPE_kwargs) -> bool: - return not self.value == 'disabled' + return self.value != 'disabled' @noPosargs @noKwargs |