Skip to content

Commit

Permalink
models:file - fix return type
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoCampinoti94 committed Oct 30, 2023
1 parent 80e3853 commit ad8cbcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acacore/models/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def identify(self, sf: Siegfried) -> SiegfriedFile:
"""
return sf.identify(self.get_absolute_path(self.root)).files[0]

def identify_custom(self, custom_sigs: list[CustomSignature]) -> CustomSignature:
def identify_custom(self, custom_sigs: list[CustomSignature]) -> Optional[CustomSignature]:
"""Uses the BOF and EOF to try to determine a ACAUID for the file.
The custom_sigs list should be found on the `reference_files` repo.
Expand Down

0 comments on commit ad8cbcb

Please sign in to comment.