diff --git a/packages/client-python/pyproject.toml b/packages/client-python/pyproject.toml index c2a31a2fe..6b69b28bc 100644 --- a/packages/client-python/pyproject.toml +++ b/packages/client-python/pyproject.toml @@ -41,6 +41,7 @@ dependencies = [ "websockets>=11.0.0", "aiofiles>=23.0.0", "pydantic>=2.0.0", + "typing_extensions>=4.0.0", ] requires-python = ">=3.10" license = "MIT" diff --git a/packages/client-python/src/rocketride/types/billing.py b/packages/client-python/src/rocketride/types/billing.py index 55dfcf707..df5838069 100644 --- a/packages/client-python/src/rocketride/types/billing.py +++ b/packages/client-python/src/rocketride/types/billing.py @@ -36,7 +36,9 @@ PromoRedemption: Result of redeeming a credit-grant code. """ -from typing import Literal, NotRequired, TypedDict +from typing import Literal, TypedDict + +from typing_extensions import NotRequired # ============================================================================= diff --git a/packages/client-python/src/rocketride/types/client.py b/packages/client-python/src/rocketride/types/client.py index 8d69a651e..7eb8a37e3 100644 --- a/packages/client-python/src/rocketride/types/client.py +++ b/packages/client-python/src/rocketride/types/client.py @@ -55,7 +55,9 @@ async def handle_event(event: DAPMessage) -> None: print(f"Event: {event['event']}") """ -from typing import Any, Callable, Awaitable, NotRequired, TypedDict, Literal, Optional, Union +from typing import Any, Callable, Awaitable, TypedDict, Literal, Optional, Union + +from typing_extensions import NotRequired class TraceInfo(TypedDict):