-
Notifications
You must be signed in to change notification settings - Fork 467
Closed as not planned
Labels
component:python sdkIssue/PR related to Python SDKIssue/PR related to Python SDKstatus:awaiting user responseAwaiting a response from the authorAwaiting a response from the authorstatus:staleIssue/PR will be closed automatically if there's no further activityIssue/PR will be closed automatically if there's no further activitytype:bugSomething isn't workingSomething isn't working
Description
Description of the bug:
When using classes from types in other classes which use pydantic, pydantic throws this error:
pydantic.errors.PydanticUserError: Please use
typing_extensions.TypedDictinstead of
typing.TypedDict on Python < 3.12.
Actual vs expected behavior:
No error
Any other information you'd like to share?
Should be an easy fix to add:
import sys
if sys.version_info >= (3, 12):
from typing import TypedDict
else:
from typing_extensions import TypedDict
Metadata
Metadata
Assignees
Labels
component:python sdkIssue/PR related to Python SDKIssue/PR related to Python SDKstatus:awaiting user responseAwaiting a response from the authorAwaiting a response from the authorstatus:staleIssue/PR will be closed automatically if there's no further activityIssue/PR will be closed automatically if there's no further activitytype:bugSomething isn't workingSomething isn't working