Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
🏷️ Fix typing issue caused by hints of httpx
Browse files Browse the repository at this point in the history
  • Loading branch information
mnixry committed Mar 4, 2022
1 parent 545f0f0 commit 001c1c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nonebot_plugin_gocqhttp/process/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ async def download_gocq():
download_path = Path(tmpdir) / ("temp" + ARCHIVE_EXT)
BINARY_DIR.mkdir(parents=True, exist_ok=True)

client = await stack.enter_async_context(AsyncClient(follow_redirects=True))
client: AsyncClient = await stack.enter_async_context(
AsyncClient(follow_redirects=True) # type:ignore
) # NOTE: see https://github.com/encode/httpx/pull/2096

url = construct_download_url()
logger.info(f"Begin to Download binary from <u>{url}</u>")
Expand Down

0 comments on commit 001c1c4

Please sign in to comment.