Skip to content

Commit

Permalink
Update Flake8 (#2570)
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesbvll authored Nov 7, 2023
1 parent 1f24f43 commit 2ec0d01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ black = { version = "==23.3.0", extras = ["jupyter"] }
docformatter = "==1.7.5"
mypy = "==1.5.1"
pylint = "==2.13.9"
flake8 = "==3.9.2"
flake8 = "==5.0.4"
pytest = "==7.4.0"
pytest-cov = "==3.0.0"
pytest-watch = "==4.2.0"
Expand Down
6 changes: 2 additions & 4 deletions src/py/flwr/server/state/sqlite_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,8 @@ def query(
with self.conn:
if (
len(data) > 0
# pylint: disable-next=C0123
and (type(data) == tuple or type(data) == list)
# pylint: disable-next=C0123
and (type(data[0]) == tuple or type(data[0]) == dict)
and isinstance(data, (tuple, list))
and isinstance(data[0], (tuple, dict))
):
rows = self.conn.executemany(query, data)
else:
Expand Down

0 comments on commit 2ec0d01

Please sign in to comment.