mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-27 16:21:28 +00:00
🔖 Release: v2.0.0 (#2070)
This commit is contained in:
@ -444,7 +444,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>
|
||||
@ -466,7 +466,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