mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-16 19:11:00 +00:00
⚡ using set for rule and perm
This commit is contained in:
@ -30,7 +30,7 @@ class Permission:
|
||||
if isinstance(other, Permission):
|
||||
checkers |= other.checkers
|
||||
elif asyncio.iscoroutinefunction(other):
|
||||
checkers.add(other)
|
||||
checkers.add(other) # type: ignore
|
||||
else:
|
||||
checkers.add(run_sync(other))
|
||||
return Permission(*checkers)
|
||||
|
Reference in New Issue
Block a user