refactor: 清理项目结构并修复类型注解问题
修复 SQLAlchemy 模型的类型注解,使用 Mapped 类型避免类型检查器错误 - 修正异步数据库操作中缺少 await 的问题 - 优化反注入统计系统的数值字段处理逻辑 - 添加缺失的导入语句修复模块依赖问题
This commit is contained in:
31
pyrightconfig.json
Normal file
31
pyrightconfig.json
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/microsoft/pyright/main/packages/vscode-pyright/schemas/pyrightconfig.schema.json",
|
||||
"include": [
|
||||
"src",
|
||||
"bot.py",
|
||||
"__main__.py"
|
||||
],
|
||||
"exclude": [
|
||||
"**/__pycache__",
|
||||
"data",
|
||||
"logs",
|
||||
"tests",
|
||||
"target",
|
||||
"*.egg-info"
|
||||
],
|
||||
"typeCheckingMode": "standard",
|
||||
"reportMissingImports": false,
|
||||
"reportMissingTypeStubs": false,
|
||||
"reportMissingModuleSource": false,
|
||||
"diagnosticSeverityOverrides": {
|
||||
"reportMissingImports": "none",
|
||||
"reportMissingTypeStubs": "none",
|
||||
"reportMissingModuleSource": "none"
|
||||
},
|
||||
"pythonVersion": "3.12",
|
||||
"venvPath": ".",
|
||||
"venv": ".venv",
|
||||
"executionEnvironments": [
|
||||
{"root": "src"}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user