From 129fc9aaad9ec1d6c9a2826e5886b3c5bd15390c Mon Sep 17 00:00:00 2001 From: Tim Camise Date: Fri, 19 Jul 2024 16:00:12 -0700 Subject: [PATCH] Fallback to typing extensions --- .../python/sdk_wireless_camera_control/open_gopro/types.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/demos/python/sdk_wireless_camera_control/open_gopro/types.py b/demos/python/sdk_wireless_camera_control/open_gopro/types.py index 56b3ae5d..5eb8918e 100644 --- a/demos/python/sdk_wireless_camera_control/open_gopro/types.py +++ b/demos/python/sdk_wireless_camera_control/open_gopro/types.py @@ -5,7 +5,12 @@ from __future__ import annotations -from typing import Any, Callable, Coroutine, TypeAlias, Union +from typing import Any, Callable, Coroutine, Union + +try: + from typing import TypeAlias +except ImportError: + from typing_extensions import TypeAlias import construct from google.protobuf.message import Message