diff --git a/wavinfo/wave_dbmd_reader.py b/wavinfo/wave_dbmd_reader.py index f6c6c0d..4cb59b8 100644 --- a/wavinfo/wave_dbmd_reader.py +++ b/wavinfo/wave_dbmd_reader.py @@ -10,7 +10,7 @@ Unless otherwise stated, all ยง references here are to from enum import IntEnum, Enum from struct import unpack from dataclasses import dataclass -from typing import Optional, Tuple, Any +from typing import Optional, Tuple, Any, Union from io import BytesIO @@ -487,7 +487,7 @@ class WavDolbyMetadataReader: #: indicating if the segment's checksum was valid, and the #: segment's parsed dataclass (or a `bytes` array if it was #: not recognized). - segment_list: Tuple[SegmentType | int, bool, Any] + segment_list: Tuple[Union[SegmentType, int], bool, Any] version: str