##// END OF EJS Templates
packaging: fix the type hint on the download_entry function...
Matt Harbison -
r49972:a7fe96ab default
parent child Browse files
Show More
@@ -10,6 +10,7 b''
10 import gzip
10 import gzip
11 import hashlib
11 import hashlib
12 import pathlib
12 import pathlib
13 import typing
13 import urllib.request
14 import urllib.request
14
15
15
16
@@ -126,8 +127,8 b' def download_to_path(url: str, path: pat'
126
127
127
128
128 def download_entry(
129 def download_entry(
129 name: dict, dest_path: pathlib.Path, local_name=None
130 name: str, dest_path: pathlib.Path, local_name=None
130 ) -> pathlib.Path:
131 ) -> typing.Tuple[pathlib.Path, typing.Dict[str, typing.Union[str, int]]]:
131 entry = DOWNLOADS[name]
132 entry = DOWNLOADS[name]
132
133
133 url = entry['url']
134 url = entry['url']
General Comments 0
You need to be logged in to leave comments. Login now