aioresponses
aioresponses copied to clipboard
body should be annotated as `Union[bytes, str]`
The body
argument is currently annotated as str
, but it works perfectly well with bytes
for providing binary responses.
I posted a PR which makes this change: https://github.com/pnuckowski/aioresponses/pull/200