Skip to content

Commit

Permalink
Fix for older proto generators not having ValueType
Browse files Browse the repository at this point in the history
  • Loading branch information
freider committed Nov 19, 2024
1 parent 82a4648 commit 4728708
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modal/io_streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@


async def _sandbox_logs_iterator(
sandbox_id: str, file_descriptor: api_pb2.FileDescriptor.ValueType, last_entry_id: str, client: _Client
sandbox_id: str, file_descriptor: "api_pb2.FileDescriptor.ValueType", last_entry_id: str, client: _Client
) -> AsyncGenerator[Tuple[Optional[bytes], str], None]:
req = api_pb2.SandboxGetLogsRequest(
sandbox_id=sandbox_id,
Expand All @@ -49,7 +49,7 @@ async def _sandbox_logs_iterator(


async def _container_process_logs_iterator(
process_id: str, file_descriptor: api_pb2.FileDescriptor.ValueType, client: _Client
process_id: str, file_descriptor: "api_pb2.FileDescriptor.ValueType", client: _Client
) -> AsyncGenerator[Optional[bytes], None]:
req = api_pb2.ContainerExecGetOutputRequest(
exec_id=process_id, timeout=55, file_descriptor=file_descriptor, get_raw_bytes=True
Expand Down Expand Up @@ -90,7 +90,7 @@ class _StreamReader(Generic[T]):

def __init__(
self,
file_descriptor: api_pb2.FileDescriptor.ValueType,
file_descriptor: "api_pb2.FileDescriptor.ValueType",
object_id: str,
object_type: Literal["sandbox", "container_process"],
client: _Client,
Expand Down

0 comments on commit 4728708

Please sign in to comment.