Skip to content
This repository was archived by the owner on Nov 20, 2025. It is now read-only.

Commit ddf1b35

Browse files
committed
Fix type hinting
1 parent f1dfe62 commit ddf1b35

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

dissect/esedb/c_esedb.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
from __future__ import annotations
2+
13
import datetime
24
import struct
35
import uuid
46
from collections import namedtuple
7+
from typing import Union
58

69
from dissect.cstruct import cstruct
710

@@ -479,7 +482,7 @@
479482
CODEPAGE.ASCII: "ascii",
480483
}
481484

482-
RecordValue = int | float | str | bytes | datetime.datetime | None
485+
RecordValue = Union[int, float, str, bytes, datetime.datetime, None]
483486

484487

485488
def decode_bit(buf: bytes) -> bool:

dissect/esedb/compression.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import struct
24

35
from dissect.util.compression import lzxpress, sevenbit

0 commit comments

Comments
 (0)