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
After upgrading from mypy 1.30 to 1.41 I ran mypy against our code base to test that there were no compatibility issues: mypy --show-traceback .
The following error is what we received:
/Users/scottmat/Development/gpo/venv/lib/python3.10/site-packages/pydantic/env_settings.py:22: error: INTERNAL ERROR -- Please try using mypy master on GitHub: https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
Please report a bug at https://github.com/python/mypy/issues
version: 1.4.1
Traceback (most recent call last):
File "mypy/semanal.py", line 6451, in accept
File "mypy/nodes.py", line 1139, in accept
File "mypy/semanal.py", line 1582, in visit_class_def
File "mypy/semanal.py", line 1667, in analyze_class
File "mypy/semanal.py", line 1694, in analyze_class_body_common
File "mypy/semanal.py", line 1777, in apply_class_plugin_hooks
File "pydantic/mypy.py", line 154, in pydantic.mypy.PydanticPlugin._pydantic_model_class_maker_callback
File "pydantic/mypy.py", line 321, in pydantic.mypy.PydanticModelTransformer.transform
File "pydantic/mypy.py", line 500, in pydantic.mypy.PydanticModelTransformer.add_construct_method
TypeError: init() missing required argument 'default' (pos 6)
/Users/scottmat/Development/gpo/venv/lib/python3.10/site-packages/pydantic/env_settings.py:22: : note: use --pdb to drop into pdb
It's an issue with pydantic's mypy plugin rather than mypy itself. You'll need to upgrade your version of pydantic; it's fixed in the latest pydantic version.
It's an issue with pydantic's mypy plugin rather than mypy itself. You'll need to upgrade your version of pydantic; it's fixed in the latest pydantic version.
After upgrading from mypy 1.30 to 1.41 I ran mypy against our code base to test that there were no compatibility issues:
mypy --show-traceback .
The following error is what we received:
Your Environment
mypy --show-traceback .
Python version: Python 3.10.10
mypy version: 1.4.1
pydantic version: 1.10.7
Configuration in pyproject:
The text was updated successfully, but these errors were encountered: