support dot notation for driver config

This commit is contained in:
yanyongyu
2021-06-20 23:38:42 +08:00
parent 7879346ca1
commit 69cee3844e
2 changed files with 8 additions and 2 deletions

View File

@ -144,6 +144,8 @@ class Config(BaseConfig):
:说明:
NoneBot 运行所使用的 ``Driver`` 。继承自 ``nonebot.driver.BaseDriver`` 。
配置格式为 ``<module>[:<class>]``,默认类名为 ``Driver``。
"""
host: IPvAnyAddress = IPv4Address("127.0.0.1") # type: ignore
"""