asyncio.Protocol.data_received
should also accept bytearray
alongside bytes
#12606
Labels
topic: asyncio
Asyncio-related issues
Asyncio's
_ProactorReadPipeTransport
can also feedbytearray
objects in thedata_received
callback fromasyncio.Protocol
.self._data
is abytearray
here: https://github.com/python/cpython/blob/f8a736b8e14ab839e1193cb1d3955b61c316d048/Lib/asyncio/proactor_events.py#L191Protocol.data_received
here: https://github.com/python/cpython/blob/f8a736b8e14ab839e1193cb1d3955b61c316d048/Lib/asyncio/proactor_events.py#L274Shall I make a PR with a fix for this?
Related cpython issue: python/cpython#123496 - I'm not sure whether or not it should be fixed in the stdlib instead.
The text was updated successfully, but these errors were encountered: