aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2022-09-02 16:26:44 -0700
committerEli Schwartz <eschwartz93@gmail.com>2022-09-19 20:57:52 -0400
commitb8e53ed5ea9c2a3eec19396233e646d4c1f667ae (patch)
tree850488f885c85ae0a98af453605434b78ab7a8f3
parent798b6c5624944233d64ca575e7a1b3291158ef5e (diff)
downloadmeson-b8e53ed5ea9c2a3eec19396233e646d4c1f667ae.zip
meson-b8e53ed5ea9c2a3eec19396233e646d4c1f667ae.tar.gz
meson-b8e53ed5ea9c2a3eec19396233e646d4c1f667ae.tar.bz2
pylint: enable use-dict-literal
-rw-r--r--.pylintrc1
-rw-r--r--mesonbuild/mtest.py8
2 files changed, 4 insertions, 5 deletions
diff --git a/.pylintrc b/.pylintrc
index 2a38bbe..945dca7 100644
--- a/.pylintrc
+++ b/.pylintrc
@@ -84,7 +84,6 @@ disable=
unused-argument,
unused-variable,
use-a-generator,
- use-dict-literal,
use-implicit-booleaness-not-comparison,
used-before-assignment,
useless-return,
diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py
index 0e0edb8..c03c3eb 100644
--- a/mesonbuild/mtest.py
+++ b/mesonbuild/mtest.py
@@ -1902,7 +1902,7 @@ class TestHarness:
async def _run_tests(self, runners: T.List[SingleTestRunner]) -> None:
semaphore = asyncio.Semaphore(self.options.num_processes)
futures = deque() # type: T.Deque[asyncio.Future]
- running_tests = dict() # type: T.Dict[asyncio.Future, str]
+ running_tests = {} # type: T.Dict[asyncio.Future, str]
interrupted = False
ctrlc_times = deque(maxlen=MAX_CTRLC) # type: T.Deque[float]
@@ -2007,9 +2007,9 @@ def rebuild_deps(ninja: T.List[str], wd: str, tests: T.List[TestSerialisation])
assert len(ninja) > 0
- depends = set() # type: T.Set[str]
- targets = set() # type: T.Set[str]
- intro_targets = dict() # type: T.Dict[str, T.List[str]]
+ depends = set() # type: T.Set[str]
+ targets = set() # type: T.Set[str]
+ intro_targets = {} # type: T.Dict[str, T.List[str]]
for target in load_info_file(get_infodir(wd), kind='targets'):
intro_targets[target['id']] = [
convert_path_to_target(f)