Skip to content

Commit

Permalink
Mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
justaddcoffee committed Aug 31, 2020
1 parent 7e9e5ef commit 0c345d6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kg_covid_19/utils/download_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ def download_from_yaml(yaml_file: str, output_dir: str,
logging.info("Using cached version of {}".format(outfile))
continue

with urllib.request.urlopen(item['url']) as response,\
open(outfile, 'wb') as out_file:
with urllib.request.urlopen(item['url']) as response, open(outfile, 'wb') as out_file: # type: ignore
data = response.read() # a `bytes` object
out_file.write(data)

Expand Down

0 comments on commit 0c345d6

Please sign in to comment.