aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.pylintrc1
-rw-r--r--mesonbuild/arglist.py2
-rw-r--r--mesonbuild/mtest.py2
3 files changed, 2 insertions, 3 deletions
diff --git a/.pylintrc b/.pylintrc
index e0790bf..2a38bbe 100644
--- a/.pylintrc
+++ b/.pylintrc
@@ -86,7 +86,6 @@ disable=
use-a-generator,
use-dict-literal,
use-implicit-booleaness-not-comparison,
- use-list-literal,
used-before-assignment,
useless-return,
useless-super-delegation,
diff --git a/mesonbuild/arglist.py b/mesonbuild/arglist.py
index 48fa6ab..2f1ce3c 100644
--- a/mesonbuild/arglist.py
+++ b/mesonbuild/arglist.py
@@ -119,7 +119,7 @@ class CompilerArgs(T.MutableSequence[str]):
# This correctly deduplicates the entries after _can_dedup definition
# Note: This function is designed to work without delete operations, as deletions are worsening the performance a lot.
def flush_pre_post(self) -> None:
- new = list() # type: T.List[str]
+ new = [] # type: T.List[str]
pre_flush_set = set() # type: T.Set[str]
post_flush = collections.deque() # type: T.Deque[str]
post_flush_set = set() # type: T.Set[str]
diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py
index 8b23829..0e0edb8 100644
--- a/mesonbuild/mtest.py
+++ b/mesonbuild/mtest.py
@@ -882,7 +882,7 @@ class TestRun:
self._num = None # type: T.Optional[int]
self.name = name
self.timeout = timeout
- self.results = list() # type: T.List[TAPParser.Test]
+ self.results = [] # type: T.List[TAPParser.Test]
self.returncode = None # type: T.Optional[int]
self.starttime = None # type: T.Optional[float]
self.duration = None # type: T.Optional[float]