mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-11 19:56:03 +00:00
fix: help mypy & fix precommit on main
Add type to help mypy figure out. Signed-off-by: Sébastien Han <seb@redhat.com>
This commit is contained in:
parent
d45137a399
commit
4928048d73
1 changed files with 1 additions and 1 deletions
|
|
@ -1015,7 +1015,7 @@ async def load_data_from_url(url: str) -> str:
|
||||||
if url.startswith("http"):
|
if url.startswith("http"):
|
||||||
async with httpx.AsyncClient() as client:
|
async with httpx.AsyncClient() as client:
|
||||||
r = await client.get(url)
|
r = await client.get(url)
|
||||||
resp = r.text
|
resp: str = r.text
|
||||||
return resp
|
return resp
|
||||||
raise ValueError(f"Unexpected URL: {type(url)}")
|
raise ValueError(f"Unexpected URL: {type(url)}")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue