diff --git a/dissect/esedb/c_esedb.py b/dissect/esedb/c_esedb.py index 183ddc5..d93fac3 100644 --- a/dissect/esedb/c_esedb.py +++ b/dissect/esedb/c_esedb.py @@ -1,7 +1,10 @@ +from __future__ import annotations + import datetime import struct import uuid from collections import namedtuple +from typing import Union from dissect.cstruct import cstruct @@ -479,7 +482,7 @@ CODEPAGE.ASCII: "ascii", } -RecordValue = int | float | str | bytes | datetime.datetime | None +RecordValue = Union[int, float, str, bytes, datetime.datetime, None] def decode_bit(buf: bytes) -> bool: