mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-27 16:21:28 +00:00
⬆️ update dependency
This commit is contained in:
@ -18,6 +18,6 @@ def dependency(event: Event):
|
||||
|
||||
@test.handle()
|
||||
@test2.handle()
|
||||
async def handle(x: Event = Depends(dependency)):
|
||||
async def handle(x: Event = Depends(dependency, use_cache=True)):
|
||||
# test dependency
|
||||
return x
|
||||
|
Reference in New Issue
Block a user