Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion python/src/magika/types/magika_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ def __init__(
self._path = path
self._status = status
self._prediction = prediction
self._validate()

def __post_init__(self) -> None:
def _validate(self) -> None:
assert self._path is not None
if self._status == Status.OK:
if self._prediction is None:
Expand Down