From 988a50b19c448b67a23256eab1d973ccbabe4030 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Fri, 2 Sep 2022 13:38:00 -0700 Subject: pylint: enable unnecessary-dunder-call --- .pylintrc | 1 - mesonbuild/arglist.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.pylintrc b/.pylintrc index af598d3..5f62f05 100644 --- a/.pylintrc +++ b/.pylintrc @@ -74,7 +74,6 @@ disable= unidiomatic-typecheck, unnecessary-comprehension, unnecessary-dict-index-lookup, - unnecessary-dunder-call, unnecessary-lambda, unnecessary-lambda-assignment, unspecified-encoding, diff --git a/mesonbuild/arglist.py b/mesonbuild/arglist.py index 2f1ce3c..f7d7530 100644 --- a/mesonbuild/arglist.py +++ b/mesonbuild/arglist.py @@ -324,10 +324,10 @@ class CompilerArgs(T.MutableSequence[str]): return NotImplemented def append(self, arg: str) -> None: - self.__iadd__([arg]) + self += [arg] def extend(self, args: T.Iterable[str]) -> None: - self.__iadd__(args) + self += args def __repr__(self) -> str: self.flush_pre_post() -- cgit v1.1