Skip to content

Commit d9de781

Browse files
committed
Fix build
Signed-off-by: Christian Vetter <christian.vetter@here.com>
1 parent 88b19a6 commit d9de781

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

flatdata-py/flatdata/lib/data_access.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,16 @@
33
See the LICENSE file in the root of this project for license details.
44
'''
55

6+
from __future__ import annotations
7+
68
import mmap
79
from collections.abc import Callable
10+
from typing import Union
811

912
import numpy as np
1013
from numpy.typing import NDArray
1114

12-
ReadableBuffer = bytes | bytearray | memoryview | mmap.mmap
15+
ReadableBuffer = Union[bytes, bytearray, memoryview, mmap.mmap]
1316

1417
# Sign bits cache for the value reading.
1518
_SIGN_BITS = [0] + [(1 << (bits - 1)) for bits in range(1, 65)]

0 commit comments

Comments
 (0)