pyright 1.1.191 raising reportUnknownVariableType
for reusable validators
#3465
Labels
bug V1
Bug related to Pydantic V1.X
Checks
Bug
Output of
python -c "import pydantic.utils; print(pydantic.utils.version_info())"
:This appears to be caused by the latest version of typeshed changing
classmethod
to a generic.Making the following change resolves this issue for the reported use case but there are other usages of
classmethod
that need to be updated to cover other cases that will result in the same error from pyright.The text was updated successfully, but these errors were encountered: