Error in mypy plugin reading config from pyproject.toml with mypy >= 0.920 #3579
Closed
3 tasks done
Labels
bug V1
Bug related to Pydantic V1.X
Checks
Bug
Output of
python -c "import pydantic.utils; print(pydantic.utils.version_info())"
:I'm testing out the new
pyproject.toml
config support in alpha. I tried to set the config in mypyproject.toml
exactly like in the docs: https://pydantic-docs.helpmanual.io/mypy_plugin/#configuring-the-plugin . However, this doesn't seem to work withmypy
0.930
, when I run it I get the folllowing traceback:The issue is here: https://github.com/samuelcolvin/pydantic/blob/ef4678999f94625819ebad61b44ea264479aeb0a/pydantic/mypy.py#L129
Newer
mypy
versions (>=0.920
) usetomli
for parsing, andtomli
's version ofload
expects the file handle in binary mode explaining the error.Related:
#2895
#2908
The text was updated successfully, but these errors were encountered: