Enforce strict type validation and update config types

Enabled strict type checking in ValidatedConfigBase to fully disable type coercion. Updated MessageReceiveConfig and MemoryConfig fields from set/tuple to list types for compatibility with strict validation.
This commit is contained in:
雅诺狐
2025-08-20 19:27:47 +08:00
parent 5265132cb6
commit 921d07e30a
2 changed files with 4 additions and 3 deletions

View File

@@ -142,6 +142,7 @@ class ValidatedConfigBase(BaseModel):
"extra": "allow", # 允许额外字段
"validate_assignment": True, # 验证赋值
"arbitrary_types_allowed": True, # 允许任意类型
"strict": True, # 如果设为 True 会完全禁用类型转换
}
@classmethod