chore: bump ruff to 0.11.0 and fix linting violations (#15953)
This commit is contained in:
parent
98a4b3e78b
commit
9e782d4c1e
10 changed files with 155 additions and 454 deletions
|
|
@ -151,7 +151,7 @@ class BaseAppGenerator:
|
|||
|
||||
def gen():
|
||||
for message in generator:
|
||||
if isinstance(message, (Mapping, dict)):
|
||||
if isinstance(message, Mapping | dict):
|
||||
yield f"data: {json.dumps(message)}\n\n"
|
||||
else:
|
||||
yield f"event: {message}\n\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue