🚨 Make pyright happy (#1840)

This commit is contained in:
BalconyJH
2025-01-27 03:40:50 +08:00
committed by GitHub
parent 40779e05e8
commit d6fd5f170a
7 changed files with 28 additions and 21 deletions
+3 -2
View File
@@ -1,3 +1,4 @@
from dataclasses import field
from pathlib import Path
import nonebot
@@ -13,9 +14,9 @@ class BotSetting(BaseModel):
"""系统代理"""
db_url: str = ""
"""数据库链接"""
platform_superusers: dict[str, list[str]] = {}
platform_superusers: dict[str, list[str]] = field(default_factory=dict)
"""平台超级用户"""
qbot_id_data: dict[str, str] = {}
qbot_id_data: dict[str, str] = field(default_factory=dict)
"""官bot id:账号id"""
def get_qbot_uid(self, qbot_id: str) -> str | None: