From c181d6ae93daf332bee98621505c2ea30cac5b1f Mon Sep 17 00:00:00 2001 From: Chen_Xu233 Date: Thu, 20 Jun 2024 16:31:19 +0800 Subject: [PATCH] =?UTF-8?q?:children=5Fcrossing:=20=E5=90=91=E4=B8=8B?= =?UTF-8?q?=E5=85=BC=E5=AE=B9=20pydantic=201.10?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nonebot_plugin_dialectlist/config.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/nonebot_plugin_dialectlist/config.py b/nonebot_plugin_dialectlist/config.py index fb51663..7553a21 100644 --- a/nonebot_plugin_dialectlist/config.py +++ b/nonebot_plugin_dialectlist/config.py @@ -13,13 +13,6 @@ class ScopedConfig(BaseModel): excluded_people: List[str] = [] # 排除的人的QQ号 visualization_type: Literal["饼图", "圆环图", "柱状图"] = "圆环图" # 可视化方案 - @field_validator("get_num") - @classmethod - def check_priority(cls, v: int) -> int: - if v >= 1: - return v - raise ValueError("表中的人数必须大于一") - class Config(BaseModel): dialectlist: ScopedConfig = ScopedConfig()