Skip to content

Commit

Permalink
fix 3.8 typing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
azliu0 committed Oct 28, 2024
1 parent c103120 commit 61c96ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modal/file_io.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright Modal Labs 2024
import io
from typing import AsyncIterator, Optional, Union, cast
from typing import AsyncIterator, List, Optional, Union, cast

from modal_proto import api_pb2

Expand Down Expand Up @@ -142,7 +142,7 @@ async def readline(self) -> Union[bytes, str]:
)
return await self._wait(resp.exec_id)

async def readlines(self) -> Union[list[bytes], list[str]]:
async def readlines(self) -> Union[List[bytes], List[str]]:
"""Read all lines from the current position."""
self._check_closed()
self._check_readable()
Expand Down

0 comments on commit 61c96ab

Please sign in to comment.