make Ruff happy
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user