make Ruff happy

This commit is contained in:
2025-10-25 23:08:27 -04:00
parent fe5c0e23b5
commit 626c865461
7 changed files with 21 additions and 21 deletions

View File

@@ -374,9 +374,9 @@ class http_client:
)
def strip_state(l) -> list:
if not isinstance(l, list):
return l
def strip_state(state_events) -> list:
if not isinstance(state_events, list):
return state_events
keys_to_remove = [
"auth_events",
@@ -387,7 +387,7 @@ def strip_state(l) -> list:
]
new_list = []
for d in l:
for d in state_events:
if not isinstance(d, dict):
new_list.append(d)
continue