Skip to content

Commit c3d18a6

Browse files
committed
Fix: variable name
1 parent 254379a commit c3d18a6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/aleph/sdk/utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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)
8989
U = 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

102102
async 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)

0 commit comments

Comments
 (0)