File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -85,12 +85,12 @@ def check_unix_socket_valid(unix_socket_path: str) -> bool:
8585 return True
8686
8787
88- C = TypeVar ("C " , str , bytes , covariant = True )
88+ T = TypeVar ("T " , str , bytes , covariant = True )
8989U = TypeVar ("U" , str , bytes , contravariant = True )
9090
9191
92- class AsyncReadable (Protocol [C ]):
93- async def read (self , n : int = - 1 ) -> C :
92+ class AsyncReadable (Protocol [T ]):
93+ async def read (self , n : int = - 1 ) -> T :
9494 ...
9595
9696
@@ -100,7 +100,7 @@ def write(self, buffer: U) -> int:
100100
101101
102102async def copy_async_readable_to_buffer (
103- readable : AsyncReadable [C ], buffer : Writable [C ], chunk_size : int
103+ readable : AsyncReadable [T ], buffer : Writable [T ], chunk_size : int
104104):
105105 while True :
106106 chunk = await readable .read (chunk_size )
You can’t perform that action at this time.
0 commit comments