mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-27 08:11:38 +00:00
⚗️ add export require option
This commit is contained in:
15
tests/test_plugins/test_export.py
Normal file
15
tests/test_plugins/test_export.py
Normal file
@ -0,0 +1,15 @@
|
||||
import nonebot
|
||||
|
||||
export = nonebot.export()
|
||||
export.foo = "bar"
|
||||
export["bar"] = "foo"
|
||||
|
||||
|
||||
@export
|
||||
def a():
|
||||
pass
|
||||
|
||||
|
||||
@export.sub
|
||||
def b():
|
||||
pass
|
Reference in New Issue
Block a user