aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2022-09-02 13:35:40 -0700
committerEli Schwartz <eschwartz93@gmail.com>2022-09-19 20:57:52 -0400
commit798b6c5624944233d64ca575e7a1b3291158ef5e (patch)
tree0550223a3c6a0b925c2ec0e2bb86b531149ec58d /mesonbuild
parent4da14918cd7ad6566f2a986d2dd1aaa87bf66198 (diff)
downloadmeson-798b6c5624944233d64ca575e7a1b3291158ef5e.zip
meson-798b6c5624944233d64ca575e7a1b3291158ef5e.tar.gz
meson-798b6c5624944233d64ca575e7a1b3291158ef5e.tar.bz2
pylint: enable use-list-literal
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/arglist.py2
-rw-r--r--mesonbuild/mtest.py2
2 files changed, 2 insertions, 2 deletions
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]