-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
✏️ Invert order of typing
<-> typing_extensions
#6359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
please review |
Deploying with
|
Latest commit: |
3e60c77
|
Status: | ✅ Deploy successful! |
Preview URL: | https://8ae9ac45.pydantic-docs2.pages.dev |
Branch Preview URL: | https://fix-docs-error.pydantic-docs2.pages.dev |
docs/usage/errors.md
Outdated
@@ -290,8 +290,7 @@ except PydanticUserError as exc_info: | |||
|
|||
## `TypedDict` version {#typed-dict-version} | |||
|
|||
This error is raised when you use `typing_extensions.TypedDict` | |||
instead of `typing.TypedDict` on Python < 3.11. | |||
This error is raised when you use `typing.TypedDict` instead of `typing_extensions.TypedDict` on Python < 3.12. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't it be Python < 3.11
?
There is a note in docstring of the method that says we only support typing.TypedDict on Python >= 3.11
.
But in the error message of the same function, we have 3.12
I think we need to change the docstring or error message
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The docstring is wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will you fix it in this commit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, it looks like it's supposed to be < 3.11 instead of < 3.12.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It needs to be 3.12 for TypedDic
please review |
Superseded by #6370 |
The description of the error message is not accurate.
Selected Reviewer: @adriangb