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