Skip to content

Commit

Permalink
project: bump pylint version to 3.1.0
Browse files Browse the repository at this point in the history
fixed two `replace with yield from` lint warnings

Signed-off-by: Mustafa Kemal Gilor <[email protected]>
Signed-off-by: mkg <[email protected]>
  • Loading branch information
xmkg committed May 13, 2024
1 parent 58a2182 commit 38819e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions searchkit/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -602,8 +602,7 @@ def data(self):
@property
def all(self):
for results in self._results_by_path.values():
for r in results:
yield r
yield from results

def reset(self):
self._results_by_path = {}
Expand Down Expand Up @@ -872,8 +871,7 @@ def __len__(self):
return len(self._entries)

def __iter__(self):
for entry in self._entries.values():
yield entry
yield from self._entries.values()

def __repr__(self):
info = ""
Expand Down
2 changes: 1 addition & 1 deletion test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
flake8==6.0.0
flake8-import-order==0.18.2
stestr
pylint==2.17.4
pylint==3.1.0

0 comments on commit 38819e9

Please sign in to comment.