nonebot2/tests/test_plugins/test_export.py

16 lines
143 B
Python
Raw Normal View History

2020-11-21 20:40:09 +08:00
import nonebot
export = nonebot.export()
export.foo = "bar"
export["bar"] = "foo"
@export
def a():
pass
@export.sub
def b():
pass