mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-18 02:30:08 +08:00
Develop: 完全使用 ruff 替代 isort 与 black (#1757)
* 🚨 完全使用 ruff 替代 isort 与 black * 🚨 ruff lint&format
This commit is contained in:
@@ -1,14 +1,13 @@
|
||||
from collections.abc import Callable
|
||||
|
||||
from pydantic import BaseModel
|
||||
from nonebot.plugin import require
|
||||
from nonebot.adapters.onebot.v11 import Message, MessageSegment
|
||||
from nonebot.plugin import require
|
||||
from pydantic import BaseModel
|
||||
|
||||
from zhenxun.models.goods_info import GoodsInfo
|
||||
|
||||
|
||||
class Goods(BaseModel):
|
||||
|
||||
before_handle: list[Callable] = []
|
||||
after_handle: list[Callable] = []
|
||||
price: int
|
||||
@@ -25,7 +24,6 @@ class Goods(BaseModel):
|
||||
|
||||
|
||||
class ShopRegister(dict):
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
self._data: dict[str, Goods] = {}
|
||||
|
||||
Reference in New Issue
Block a user