Improve typing.

This commit is contained in:
Felix Fontein 2026-04-02 20:03:36 +02:00
parent b00fc741e1
commit a00b678649

View File

@ -388,7 +388,7 @@ class APIClient(_Session):
@t.overload
def _stream_helper(
self, response: Response, *, decode: t.Literal[False] = False
) -> t.Generator[bytes]: ...
) -> t.Generator[bytes | str]: ...
@t.overload
def _stream_helper(