mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 12:32:30 +08:00
fix: return type annotation for get_urls() in download_deps (#10478)
### What problem does this PR solve? Fixes the return type annotation for the `get_urls` function in `download_deps.py` ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -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",
|
||||
|
||||
Reference in New Issue
Block a user