@@ -336,7 +336,7 @@ class StapledStream(trio.abc.HalfCloseableStream):
336
336
send_stream : trio .abc .SendStream = attr .ib ()
337
337
receive_stream : trio .abc .ReceiveStream = attr .ib ()
338
338
async def aclose (self ) -> None : ...
339
- async def send_all (self , data : Union [bytes , memoryview ]) -> None : ...
339
+ async def send_all (self , data : Union [bytes , bytearray , memoryview ]) -> None : ...
340
340
async def wait_send_all_might_not_block (self ) -> None : ...
341
341
async def receive_some (self , max_bytes : Optional [int ] = ...) -> bytes : ...
342
342
async def send_eof (self ) -> None : ...
@@ -413,7 +413,7 @@ class SocketStream(trio.abc.HalfCloseableStream):
413
413
@overload
414
414
def getsockopt (self , level : int , option : int , buffersize : int ) -> bytes : ...
415
415
async def aclose (self ) -> None : ...
416
- async def send_all (self , data : Union [bytes , memoryview ]) -> None : ...
416
+ async def send_all (self , data : Union [bytes , bytearray , memoryview ]) -> None : ...
417
417
async def wait_send_all_might_not_block (self ) -> None : ...
418
418
async def receive_some (self , max_bytes : Optional [int ] = ...) -> bytes : ...
419
419
async def send_eof (self ) -> None : ...
@@ -829,7 +829,7 @@ class SSLStream(trio.abc.Stream):
829
829
async def do_handshake (self ) -> None : ...
830
830
async def unwrap (self ) -> Tuple [trio .abc .Stream , bytes ]: ...
831
831
async def aclose (self ) -> None : ...
832
- async def send_all (self , data : Union [bytes , memoryview ]) -> None : ...
832
+ async def send_all (self , data : Union [bytes , bytearray , memoryview ]) -> None : ...
833
833
async def wait_send_all_might_not_block (self ) -> None : ...
834
834
async def receive_some (self , max_bytes : Optional [int ] = ...) -> bytes : ...
835
835
0 commit comments