From b00e8e9670a87bb538b29d4717195de9cec12a38 Mon Sep 17 00:00:00 2001 From: Georgi Rusev Date: Thu, 9 Jan 2025 17:54:47 +0200 Subject: [PATCH] version safe Literal --- python/arcticdb/util/utils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python/arcticdb/util/utils.py b/python/arcticdb/util/utils.py index 5dedbf4aef..07cc82401b 100644 --- a/python/arcticdb/util/utils.py +++ b/python/arcticdb/util/utils.py @@ -4,8 +4,12 @@ As of the Change Date specified in that file, in accordance with the Business Source License, use of this software will be governed by the Apache License, version 2.0. """ +import sys from typing import List, Tuple, Union -from typing_extensions import Literal +if sys.version_info >= (3, 8): + from typing import Literal +else: + from typing_extensions import Literal import numpy as np import pandas as pd