Browse Source

add ignore because ty does not understand if-else

pull/15091/head
svlandeg 4 months ago
parent
commit
5ab42895d2
  1. 2
      fastapi/routing.py

2
fastapi/routing.py

@ -635,7 +635,7 @@ def get_request_handler(
else:
def _sync_stream_jsonl() -> Iterator[bytes]:
for item in gen:
for item in gen: # ty: ignore[not-iterable]
yield _serialize_item(item)
jsonl_stream_content = _sync_stream_jsonl()

Loading…
Cancel
Save