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
Traceback (most recent call last):
File "mypy/semanal.py", line 7286, in accept
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](https://github.com/python/mypy/issues?q=sort%3Aupdated-desc+is%3Aissue+is%3Aopen)
version: 1.14.1
/home/runner/work/datahub/datahub/metadata-ingestion-modules/airflow-plugin/venv/lib/python3.10/site-packages/pydantic/env_settings.py:23: : note: use --pdb to drop into pdb
File "mypy/nodes.py", line 1196, in accept
File "mypy/semanal.py", line 1787, in visit_class_def
File "mypy/semanal.py", line 2003, in analyze_class
File "mypy/semanal.py", line 2050, in analyze_class_body_common
File "mypy/semanal.py", line 2135, 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 317, in pydantic.mypy.PydanticModelTransformer.transform
File "pydantic/mypy.py", line 497, in pydantic.mypy.PydanticModelTransformer.add_construct_method
File "mypy/types.py", line 614, in __init__
TypeError: mypy.types.TypeVarId object expected; got int
This error comes from pydantic plugin, not from mypy itself - most likely a compatibility problem. You're certainly missing relevant part of mypy.ini or pyproject.toml where the plugin is enabled. Are you using the latest pydantic version? Does this happen with latest and master mypy?
Bug Report
https://github.com/datahub-project/datahub/actions/runs/14757347168/job/41428929690?pr=13374
In this datahub-project/datahub#13374
Got this error https://github.com/datahub-project/datahub/actions/runs/14757347168/job/41428929690?pr=13374
Expected Behavior
Actual Behavior
Your Environment
mypy --show-traceback --show-error-codes src/ tests/
mypy.ini
(and other config files):The text was updated successfully, but these errors were encountered: