[Chore/Refactor] Improve type safety and resolve type checking issues (#25104)
This commit is contained in:
parent
017a75aa44
commit
53c4a8787f
4 changed files with 11 additions and 6 deletions
|
|
@ -1093,7 +1093,7 @@ class DocumentService:
|
|||
account: Account | Any,
|
||||
dataset_process_rule: Optional[DatasetProcessRule] = None,
|
||||
created_from: str = "web",
|
||||
):
|
||||
) -> tuple[list[Document], str]:
|
||||
# check doc_form
|
||||
DatasetService.check_doc_form(dataset, knowledge_config.doc_form)
|
||||
# check document limit
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue