pylint: enable unnecessary-not check

This finds things like
```python
if not x == 1:
```
which should be
```python
if x != 1:
```
pull/9174/head
Dylan Baker 3 years ago committed by Eli Schwartz
parent 9e61b4fe99
commit 1fc3d8608d
  1. 5
      .pylintrc
  2. 2
      mesonbuild/interpreter/interpreterobjects.py

@ -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

@ -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

Loading…
Cancel
Save