Skip to content

Commit aa54e8e

Browse files
committed
pre-commit fixes
1 parent c66d73c commit aa54e8e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

openml/_api/clients/http.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ def delete(
762762
def download(
763763
self,
764764
url: str,
765-
handler: Callable[[Response, Path, str], Path] | None = None,
765+
handler: Callable[[Response, Path, str], None] | None = None,
766766
encoding: str = "utf-8",
767767
file_name: str = "response.txt",
768768
md5_checksum: str | None = None,
@@ -803,7 +803,7 @@ def download(
803803

804804
response = self.get(url, md5_checksum=md5_checksum)
805805

806-
def write_to_file(response, path, encoding):
806+
def write_to_file(response: Response, path: Path, encoding: str) -> None:
807807
path.write_text(response.text, encoding)
808808

809809
handler = handler or write_to_file

0 commit comments

Comments
 (0)