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 upmypy complains about pre=True root validators #984
Closed
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug
Please complete:
import sys; print(sys.version)
: 3.7.3import pydantic; print(pydantic.VERSION)
: 1.0With the code found in the root validators documentation:
Mypy has the following to say:
The following change pleases mypy, but of course that changes the semantics: