mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-12-18 17:35:46 +08:00
Update creating-a-plugin.md
This commit is contained in:
parent
a068040cbf
commit
f53cf80221
@ -82,10 +82,10 @@ foo
|
|||||||
示例:
|
示例:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from pydantic import BaseSetting
|
from pydantic import BaseSettings
|
||||||
|
|
||||||
|
|
||||||
class Config(BaseSetting):
|
class Config(BaseSettings):
|
||||||
|
|
||||||
# plugin custom config
|
# plugin custom config
|
||||||
plugin_setting: str = "default"
|
plugin_setting: str = "default"
|
||||||
|
Loading…
Reference in New Issue
Block a user