chore: apply ty checks on api code with script and ci action (#24653)
This commit is contained in:
parent
c373b734bc
commit
7b379e2a61
48 changed files with 188 additions and 142 deletions
|
|
@ -229,7 +229,7 @@ class ExternalDatasetService:
|
|||
|
||||
@staticmethod
|
||||
def get_external_knowledge_api_settings(settings: dict) -> ExternalKnowledgeApiSetting:
|
||||
return ExternalKnowledgeApiSetting.parse_obj(settings)
|
||||
return ExternalKnowledgeApiSetting.model_validate(settings)
|
||||
|
||||
@staticmethod
|
||||
def create_external_dataset(tenant_id: str, user_id: str, args: dict) -> Dataset:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue