Skip to content

Commit

Permalink
Bump pylint from 3.0.3 to 3.1.0 (#446)
Browse files Browse the repository at this point in the history
* Bump pylint from 3.0.3 to 3.1.0

Bumps [pylint](https://github.com/pylint-dev/pylint) from 3.0.3 to 3.1.0.
- [Release notes](https://github.com/pylint-dev/pylint/releases)
- [Commits](pylint-dev/pylint@v3.0.3...v3.1.0)

---
updated-dependencies:
- dependency-name: pylint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* database.py: make pylint happy

Use 'yield from' directly instead of yielding each element one by one

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Maciej Brencz <maciej.brencz@gmail.com>
  • Loading branch information
dependabot[bot] and macbre committed Mar 11, 2024
1 parent ebd7f17 commit af04e27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions indexdigest/database.py
Expand Up @@ -133,8 +133,7 @@ def query_dict_rows(self, sql):
:rtype: dict[]
"""
# DictCursor is a Cursor class that returns rows as dictionaries
for row in self.query(sql, cursor_class=DictCursor):
yield row
yield from self.query(sql, cursor_class=DictCursor)

def query_field(self, sql):
"""
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -51,7 +51,7 @@
'dev': [
'coverage==6.5.0',
'coveralls==3.3.1',
'pylint==3.0.3',
'pylint==3.1.0',
'pytest==8.1.1',
'pytest-cov==4.1.0',
'twine==5.0.0',
Expand Down

0 comments on commit af04e27

Please sign in to comment.