typing: capa.helpers

This commit is contained in:
William Ballenthin
2021-06-09 15:09:37 -06:00
parent 9a4e9b6586
commit 325c726f0e

View File

@@ -15,7 +15,7 @@ def hex(i):
return _hex(int(i))
def get_file_taste(sample_path):
def get_file_taste(sample_path: str) -> bytes:
if not os.path.exists(sample_path):
raise IOError("sample path %s does not exist or cannot be accessed" % sample_path)
with open(sample_path, "rb") as f: