Skip to content

Commit

Permalink
pylint: enable use-list-literal
Browse files Browse the repository at this point in the history
  • Loading branch information
dcbaker authored and eli-schwartz committed Sep 20, 2022
1 parent 4da1491 commit 798b6c5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion mesonbuild/arglist.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def __init__(self, compiler: T.Union['Compiler', 'StaticLinker'],
# 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]
Expand Down
2 changes: 1 addition & 1 deletion mesonbuild/mtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@ def __init__(self, test: TestSerialisation, test_env: T.Dict[str, str],
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]
Expand Down

0 comments on commit 798b6c5

Please sign in to comment.