EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit fb484db4 authored by Fabian Schindler's avatar Fabian Schindler
Browse files

Adding type hints and fixing typing issue

parent bdedd34c
No related branches found
No related tags found
No related merge requests found
Pipeline #22813 passed
......@@ -381,7 +381,7 @@ class HTTPSource(Source):
def get_file(self, path: str, target_path: str):
url = urljoin(self.endpoint_url, path)
response = requests.get(url, allow_redirects=True)
with open(target_path, "w") as f:
with open(target_path, "wb") as f:
f.write(response.content)
@abstractmethod
......
......@@ -4,3 +4,4 @@ mypy==0.910
types-redis
types-PyYAML
types-requests
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment