-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Can not use ValidataionError __init__ method #6734
Comments
There is no |
Thanks for your reply, but I can't find the
|
Yes sorry, apologies for the misnomer. |
@adriangb @so1n Hello. I get the same error (with V2 but not with V1) and don't understand what the fix is. Here is a sample code snippet:
What is the solution? |
Use |
@adriangb I think you meant to say use ValidationError.from_exception_data which gives a TypeError :(
|
@dineshbvadhia Eh... I recommend setting up any kind of type checker on your setup. The API documentation may help you: https://docs.pydantic.dev/latest/api/pydantic_core/#pydantic_core._pydantic_core.ValidationError.from_exception_data |
I'm facing this error ( |
Initial Checks
Description
Can not use ValidataionError init method
Example Code
Python, Pydantic & OS Version
Selected Assignee: @hramezani
The text was updated successfully, but these errors were encountered: