Skip to content

Commit

Permalink
Add typing info to download_file() docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
blancadesal committed Sep 15, 2022
1 parent 8c4b815 commit 993577f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mwsql/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,11 @@ def download_file(url: str, file_name: str) -> Optional[Path]:
"""
Download a file from a URL and show a progress indicator. Return the path to the downloaded file.
:param url: URL to download from
:type url: str
:param file_name: name of the file to download
type file_name: str
:return: path to the downloaded file
:rtype: Optional[Path]
"""

session = requests.Session()
Expand Down

0 comments on commit 993577f

Please sign in to comment.