Support configuration of typing
vs typing_extensions
#221
Labels
🚀 enhancement
New feature or request
🎉 released
Changes were included to the latest release
👋 response needed
Awaiting response from a reporter
Describe your idea
I would like to enforce the library to use
typing_extensions
, regardless of my interpreter version.The top level
if
clause in the stub files could maybe support some type of configuration, like an environment variable?Code sample
Additional context
pydantic
v2 requiresTypedDict
to betyping_extensions.TypedDict
unless python is version 3.12 or higher. I cannot upgrade to this version of python, but I do want pydanticsTypedDict
support for parsing your generatedTypedDict
s.The text was updated successfully, but these errors were encountered: