mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-12-01 09:34:46 +08:00
14 lines
350 B
Python
14 lines
350 B
Python
|
from nonebot.matcher import Matcher
|
||
|
from nonebot.permission import Permission
|
||
|
|
||
|
default_permission = Permission()
|
||
|
|
||
|
test_permission_updater = Matcher.new(permission=default_permission)
|
||
|
|
||
|
test_custom_updater = Matcher.new(permission=default_permission)
|
||
|
|
||
|
|
||
|
@test_custom_updater.permission_updater
|
||
|
async def _() -> Permission:
|
||
|
return default_permission
|