Skip to content

Commit

Permalink
Bumped pre-commit hook for black from 23.12.1 to 24.1.1 (#409)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit updater <noreply@example.org>
  • Loading branch information
rmartin16 and pre-commit updater authored Feb 1, 2024
1 parent 1a93c9b commit dad7255
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ repos:
- --fix

- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.1.1
hooks:
- id: black
language_version: python3
Expand Down
1 change: 0 additions & 1 deletion src/qbittorrentapi/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ class Client(
RSSAPIMixIn,
SearchAPIMixIn,
):

"""
Initialize API for qBittorrent client.
Expand Down
16 changes: 10 additions & 6 deletions src/qbittorrentapi/definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,11 @@ def __init__(
):
super().__init__(
[
entry_class(data=entry, **kwargs)
if entry_class is not None and isinstance(entry, Mapping)
else entry
(
entry_class(data=entry, **kwargs)
if entry_class is not None and isinstance(entry, Mapping)
else entry
)
for entry in list_entries or []
]
)
Expand All @@ -261,9 +263,11 @@ def __init__(
):
super().__init__(
[
entry_class(data=entry, **kwargs) # type: ignore[misc]
if entry_class is not None and isinstance(entry, Mapping)
else entry
(
entry_class(data=entry, **kwargs) # type: ignore[misc]
if entry_class is not None and isinstance(entry, Mapping)
else entry
)
for entry in list_entries or []
]
)
Expand Down

0 comments on commit dad7255

Please sign in to comment.