mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-28 08:41:29 +00:00
🔖 Release: v2.0.0 (#2070)
This commit is contained in:
@ -428,7 +428,7 @@ async def get_client() -> AsyncGenerator[httpx.AsyncClient, None]:
|
||||
|
||||
@test.handle()
|
||||
async def _(x: Annotated[httpx.AsyncClient, Depends(get_client)]):
|
||||
resp = await x.get("https://v2.nonebot.dev")
|
||||
resp = await x.get("https://nonebot.dev")
|
||||
```
|
||||
|
||||
</TabItem>
|
||||
@ -450,7 +450,7 @@ async def get_client() -> AsyncGenerator[httpx.AsyncClient, None]:
|
||||
|
||||
@test.handle()
|
||||
async def _(x: httpx.AsyncClient = Depends(get_client)):
|
||||
resp = await x.get("https://v2.nonebot.dev")
|
||||
resp = await x.get("https://nonebot.dev")
|
||||
```
|
||||
|
||||
</TabItem>
|
||||
|
Reference in New Issue
Block a user