Skip to content

Commit

Permalink
Fix type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
Bobholamovic committed Dec 21, 2023
1 parent b280333 commit f4f61e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion erniebot-agent/src/erniebot_agent/file_io/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def __repr__(self) -> str:
async def read_contents(self) -> bytes:
raise NotImplementedError

async def write_contents_to(self, local_path: Union[str, os.PathLike[str]]) -> None:
async def write_contents_to(self, local_path: Union[str, os.PathLike]) -> None:
contents = await self.read_contents()
await anyio.Path(local_path).write_bytes(contents)

Expand Down
2 changes: 1 addition & 1 deletion erniebot-agent/src/erniebot_agent/file_io/file_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

logger = logging.getLogger(__name__)

FilePath: TypeAlias = Union[str, os.PathLike[str]]
FilePath: TypeAlias = Union[str, os.PathLike]


@final
Expand Down

0 comments on commit f4f61e6

Please sign in to comment.