chore: bump ruff to 0.11.0 and fix linting violations (#15953)

This commit is contained in:
Bowen Liang 2025-03-17 16:13:11 +08:00 • committed by GitHub
commit 9e782d4c1e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 155 additions and 454 deletions

View file

@ -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"