Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix const validations #794
This fixes #620
NOTICE: pydantic is currently pushing towards V1 release,
Related issue number
@@ Coverage Diff @@ ## master #794 +/- ## ====================================== Coverage 100% 100% ====================================== Files 17 17 Lines 2984 2847 -137 Branches 580 559 -21 ====================================== - Hits 2984 2847 -137
Ok changed it up a bit more and now it should work for #793. At least in the most obvious cases.
It still fails if you initialize the default value with a BaseModel instance instead of a dict.