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:
parent
534fa60b2a
commit
b5ddc7ca05
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ import os
|
||||||
import urllib.request
|
import urllib.request
|
||||||
import argparse
|
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:
|
if use_china_mirrors:
|
||||||
return [
|
return [
|
||||||
"http://mirrors.tuna.tsinghua.edu.cn/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb",
|
"http://mirrors.tuna.tsinghua.edu.cn/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue