Message358214
Even if make TemporaryFile a subclass of IOBase (I am not sure we should do this) you could only use this in Python 3.9 and newer. I think it is better to fix this issue on the aiohttp side. aiohttp already registers payload types for a bunch of file-like types. You can also register it yourself:
aiohttp.payload.PAYLOAD_REGISTRY.register(aiohttp.payload.IOBasePayload, tempfile.TemporaryFile)
Seems IOBasePayload needs only read() and close() methods. |
|
Date |
User |
Action |
Args |
2019-12-10 19:08:00 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, terry.reedy, asvetlov, martin.panter, wumpus, Dutcho, sergiitk |
2019-12-10 19:08:00 | serhiy.storchaka | set | messageid: <1576004880.12.0.640381303756.issue33762@roundup.psfhosted.org> |
2019-12-10 19:08:00 | serhiy.storchaka | link | issue33762 messages |
2019-12-10 19:07:59 | serhiy.storchaka | create | |
|