Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

fix: return type annotation for get_urls() in download_deps (#10478)

Gifford Nowlandb5ddc7ca051e
diff --git a/download_deps.py b/download_deps.py
index d140be347e..a3fa49f0ee 100644
--- a/download_deps.py
+++ b/download_deps.py
@@ -16,7 +16,7 @@ import os
import urllib.request
import argparse
-def get_urls(use_china_mirrors=False) -> Union[str, list[str]]:
+def get_urls(use_china_mirrors=False) -> list[Union[str, list[str]]]:
if use_china_mirrors:
return [
"http://mirrors.tuna.tsinghua.edu.cn/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb",