From 97427f9136d6878c208729f629ed5052ca27bcd1 Mon Sep 17 00:00:00 2001 From: Quentin POLLET Date: Sun, 3 Nov 2024 22:03:46 +0100 Subject: [PATCH] fix: import --- src/freebox_api/api/download.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/freebox_api/api/download.py b/src/freebox_api/api/download.py index bb3aab6d..218740e2 100644 --- a/src/freebox_api/api/download.py +++ b/src/freebox_api/api/download.py @@ -4,7 +4,13 @@ """ import base64 -from typing_extensions import Required + +import sys + +if sys.version_info < (3, 12): + from typing_extensions import Required +else: + from typing import Required from typing import Any, TypedDict, Union from typing import Dict from typing import Optional