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
Mypy 1.4.1 not working with pydantic plugin, but 1.3.0 version working.
/home/andrzej/.pyenv/versions/3.11.4/envs/KRZ-3/lib/python3.11/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 129, in pydantic.mypy.PydanticPlugin._pydantic_model_class_maker_callback
File "pydantic/mypy.py", line 262, in pydantic.mypy.PydanticModelTransformer.transform
File "pydantic/mypy.py", line 441, in pydantic.mypy.PydanticModelTransformer.add_construct_method
TypeError: init() missing required argument 'default' (pos 6)
/home/andrzej/.pyenv/versions/3.11.4/envs/KRZ-3/lib/python3.11/site-packages/pydantic/env_settings.py:22: : note: use --pdb to drop into pdb
Crash Report
Mypy 1.4.1 not working with pydantic plugin, but 1.3.0 version working.
/home/andrzej/.pyenv/versions/3.11.4/envs/KRZ-3/lib/python3.11/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 129, in pydantic.mypy.PydanticPlugin._pydantic_model_class_maker_callback
File "pydantic/mypy.py", line 262, in pydantic.mypy.PydanticModelTransformer.transform
File "pydantic/mypy.py", line 441, in pydantic.mypy.PydanticModelTransformer.add_construct_method
TypeError: init() missing required argument 'default' (pos 6)
/home/andrzej/.pyenv/versions/3.11.4/envs/KRZ-3/lib/python3.11/site-packages/pydantic/env_settings.py:22: : note: use --pdb to drop into pdb
To Reproduce
pip install pydantic mypy
pyproject.toml
file with config for mypy.mypy .
Your Environment
1.4.1
.
or--install-types .
pyproject.toml
:3.11.4
The text was updated successfully, but these errors were encountered: