⚗️ add export require option

This commit is contained in:
yanyongyu
2020-11-21 20:40:09 +08:00
parent b36f95862a
commit 9373bd09ed
6 changed files with 145 additions and 37 deletions

View 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