From df22d490b187a4148bc02accf6c631f53a85290b Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Sat, 27 Jun 2020 21:13:06 +0200 Subject: [PATCH] Tidy up types --- spacy/cli/project.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spacy/cli/project.py b/spacy/cli/project.py index d59537bb8..8a5e3ded0 100644 --- a/spacy/cli/project.py +++ b/spacy/cli/project.py @@ -177,7 +177,9 @@ def project_assets(project_path: Path) -> None: fetch_asset(project_path, url, dest, asset.get("checksum")) -def fetch_asset(project_path: Path, url: str, dest: Path, checksum: str = None): +def fetch_asset( + project_path: Path, url: str, dest: Path, checksum: Optional[str] = None +) -> None: check_asset(url) dest_path = project_path / dest if dest_path.exists() and checksum: