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
Attempting to upgrade mypy from 0.910 to 0.920 breaks when using any of those plugins.
To Reproduce
Create the two following files:
# test.pydeffunc(var: int) ->int:
returnvar
# mypy.ini[mypy]plugins=pydantic.mypy
Install pydantic and mypy, and run mypy --config mypy.ini test.py
Expected Behavior
No issues are found.
Actual Behavior
I am getting the following error:
mypy.ini:2: error: Error importing plugin "pydantic.mypy": cannot import name 'TypeVarDef' from 'mypy.types' (***/python3.10/site-packages/mypy/types.cpython-310-x86_64-linux-gnu.so)
Found 1 error in 1 file (errors prevented further checking)
Your Environment
Mypy version used: 0.920
Python version used: 3.10.1
The text was updated successfully, but these errors were encountered:
Bug Report
I am using mypy plugins for libraries like pydantic and SQLAlchemy.
Attempting to upgrade mypy from 0.910 to 0.920 breaks when using any of those plugins.
To Reproduce
Create the two following files:
Install
pydantic
andmypy
, and runmypy --config mypy.ini test.py
Expected Behavior
No issues are found.
Actual Behavior
I am getting the following error:
Your Environment
0.920
3.10.1
The text was updated successfully, but these errors were encountered: