From 455050340f9cc9311e9ce43ab5aeb03602547907 Mon Sep 17 00:00:00 2001 From: David Randall Stokes Date: Thu, 2 Nov 2023 15:23:14 -0400 Subject: [PATCH] Removed use of `typing.Literal` for backwards compatibility --- ebmlite/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ebmlite/util.py b/ebmlite/util.py index f711b3c..27703bd 100644 --- a/ebmlite/util.py +++ b/ebmlite/util.py @@ -23,7 +23,7 @@ import struct import sys import tempfile -from typing import BinaryIO, Callable, IO, List, Literal, Optional, Tuple, Union +from typing import BinaryIO, Callable, IO, List, Optional, Tuple, Union from xml.etree import ElementTree as ET from . import core, encoding, decoding @@ -35,7 +35,7 @@ def createID(schema: core.Schema, - idClass: Literal['a', 'b', 'c', 'd', 'A', 'B', 'C', 'D'], + idClass: str, exclude: Tuple[int] = (), minId: int = 0x81, maxId: int = 0x1FFFFFFE,