mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
Tidy up types
This commit is contained in:
parent
6678bd80c2
commit
df22d490b1
|
@ -177,7 +177,9 @@ def project_assets(project_path: Path) -> None:
|
||||||
fetch_asset(project_path, url, dest, asset.get("checksum"))
|
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)
|
check_asset(url)
|
||||||
dest_path = project_path / dest
|
dest_path = project_path / dest
|
||||||
if dest_path.exists() and checksum:
|
if dest_path.exists() and checksum:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user