Skip to content

Commit

Permalink
Update cos.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MorvanZhou authored Aug 22, 2024
1 parent add140a commit 846b858
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/retk/core/utils/cos.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import asyncio
from datetime import datetime
from typing import Optional, BinaryIO
from typing import Optional, BinaryIO, List, Dict

import httpx

Expand Down Expand Up @@ -165,7 +165,7 @@ async def async_get(self, uid: str, filename: str) -> Optional[bytes]:
return None
return resp.content

async def async_batch_get(self, uid: str, filenames: list[str]) -> dict[str, bytes]:
async def async_batch_get(self, uid: str, filenames: List[str]) -> Dict[str, bytes]:
async def get_file(filename: str):
return await self.async_get(uid=uid, filename=filename)

Expand Down

0 comments on commit 846b858

Please sign in to comment.