From 957b23db9250f8fb30257b83d8aae112b3ad9121 Mon Sep 17 00:00:00 2001 From: Jamie Hardt Date: Thu, 24 Nov 2022 23:04:35 -0800 Subject: [PATCH] Update wave_dbmd_reader.py --- wavinfo/wave_dbmd_reader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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