Skip to content

Commit cabe98a

Browse files
committed
lint
1 parent 4e69939 commit cabe98a

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

music_assistant_client/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def compact_media_item_dict(item: dict[str, Any]) -> dict[str, Any]:
4444
def searchresults_as_compact_dict(search_results: SearchResults) -> dict[str, Any]:
4545
"""Return compacted search result dict."""
4646
dict_result: dict[str, list[dict[str, Any]]] = search_results.to_dict()
47-
for media_type_key in dict_result:
47+
for media_type_key in dict_result: # noqa: PLC0206
4848
for item in dict_result[media_type_key]:
4949
if not isinstance(item, dict):
5050
# guards against invalid data

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ asyncio_mode = "auto"
8989
ignore = [
9090
"ANN002", # Just annoying, not really useful
9191
"ANN003", # Just annoying, not really useful
92-
"ANN101", # Self... explanatory
9392
"ANN401", # Opinioated warning on disallowing dynamically typed expressions
9493
"D203", # Conflicts with other rules
9594
"D213", # Conflicts with other rules
@@ -100,8 +99,8 @@ ignore = [
10099
"PLR2004", # Just annoying, not really useful
101100
"PD011", # Just annoying, not really useful
102101
"S101", # assert is often used to satisfy type checking
103-
"TCH001", # Just annoying, not really useful
104-
"TCH003", # Just annoying, not really useful
102+
"TC001", # Just annoying, not really useful
103+
"TC003", # Just annoying, not really useful
105104
"TD002", # Just annoying, not really useful
106105
"TD003", # Just annoying, not really useful
107106
"TD004", # Just annoying, not really useful

0 commit comments

Comments
 (0)