You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to mimic some behavior on my test and when I try to create an object of ValidationError, I'll get an error:
TypeError: No constructor defined
This is not an issue in version one.
As I checked ValidationError is inherited from ValueError which is Exception. In my understanding, it makes sense to create an object of the Exception class.
Initial Checks
Description
I'm trying to mimic some behavior on my test and when I try to create an object of ValidationError, I'll get an error:
This is not an issue in version one.
As I checked ValidationError is inherited from ValueError which is Exception. In my understanding, it makes sense to create an object of the Exception class.
Example Code
Python, Pydantic & OS Version
The text was updated successfully, but these errors were encountered: