mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-27 16:21:28 +00:00
add typing docs
This commit is contained in:
@ -6,6 +6,11 @@
|
||||
基类:`pydantic.env_settings.BaseSettings`
|
||||
|
||||
|
||||
### _class_ `Env(_env_file='<objectobject>', _env_file_encoding=None, *, environment='prod')`
|
||||
|
||||
基类:`pydantic.env_settings.BaseSettings`
|
||||
|
||||
|
||||
### _class_ `Config(_env_file='<objectobject>', _env_file_encoding=None, *, driver='nonebot.drivers.fastapi', host=IPv4Address('127.0.0.1'), port=8080, secret=None, debug=False, api_root={}, api_timeout=60.0, access_token=None, superusers={}, nickname='', command_start={'/'}, command_sep={'.'}, session_expire_timeout=datetime.timedelta(seconds=120), **values)`
|
||||
|
||||
基类:[`nonebot.config.BaseConfig`](#nonebot.config.BaseConfig)
|
||||
@ -25,8 +30,3 @@ configs:
|
||||
|
||||
* 说明:
|
||||
nonebot 运行使用后端框架封装 Driver 。继承自 nonebot.driver.BaseDriver 。
|
||||
|
||||
|
||||
### _class_ `Env(_env_file='<objectobject>', _env_file_encoding=None, *, environment='prod')`
|
||||
|
||||
基类:`pydantic.env_settings.BaseSettings`
|
||||
|
Reference in New Issue
Block a user