Skip to content

Commit a0cf100

Browse files
committed
update get_sha256 type annotation
1 parent d8d7151 commit a0cf100

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/bare_utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import json
44
import os
55
import uuid
6+
from pathlib import Path
67
from typing import Any, Dict, Union
78

89
GITHUB_REPOSITORY_OWNER = os.getenv("GITHUB_REPOSITORY_OWNER", "bioimage-io")
@@ -35,7 +36,7 @@ def set_gh_actions_output(name: str, output: Union[str, Any]):
3536
print(f"{name}={output}", file=fh)
3637

3738

38-
def get_sha256(path: os.PathLike[str]):
39+
def get_sha256(path: Path):
3940
h = hashlib.sha256()
4041
with open(path, "rb") as f:
4142
while True:

0 commit comments

Comments
 (0)