mirror of
https://github.com/mandiant/capa.git
synced 2025-12-12 15:49:46 -08:00
typing: capa.helpers
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user