Title: mypy --show-traceback --show-error-codes src/ tests/ failing · Issue #19004 · python/mypy · GitHub
Open Graph Title: mypy --show-traceback --show-error-codes src/ tests/ failing · Issue #19004 · python/mypy
X Title: mypy --show-traceback --show-error-codes src/ tests/ failing · Issue #19004 · python/mypy
Description: Bug Report https://github.com/datahub-project/datahub/actions/runs/14757347168/job/41428929690?pr=13374 Traceback (most recent call last): File "mypy/semanal.py", line 7286, in accept https://mypy.readthedocs.io/en/stable/common_issues.h...
Open Graph Description: Bug Report https://github.com/datahub-project/datahub/actions/runs/14757347168/job/41428929690?pr=13374 Traceback (most recent call last): File "mypy/semanal.py", line 7286, in accept https://mypy....
X Description: Bug Report https://github.com/datahub-project/datahub/actions/runs/14757347168/job/41428929690?pr=13374 Traceback (most recent call last): File "mypy/semanal.py", line 7286, in accept htt...
Opengraph URL: https://github.com/python/mypy/issues/19004
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"mypy --show-traceback --show-error-codes src/ tests/ failing","articleBody":"\u003c!--\nIf you're not sure whether what you're experiencing is a mypy bug, please see the \"Question and Help\" form instead.\nPlease consider:\n\n- checking our common issues page: https://mypy.readthedocs.io/en/stable/common_issues.html\n- searching our issue tracker: https://github.com/python/mypy/issues to see if it's already been reported\n- asking on gitter chat: https://gitter.im/python/typing\n-->\n\n**Bug Report**\n\n\n\u003c!--\nIf you're reporting a problem with a specific library function, the typeshed tracker is better suited for this report: https://github.com/python/typeshed/issues\n\nIf the project you encountered the issue in is open source, please provide a link to the project.\n-->\n\nhttps://github.com/datahub-project/datahub/actions/runs/14757347168/job/41428929690?pr=13374\n```\nTraceback (most recent call last):\n File \"mypy/semanal.py\", line 7286, in accept\nhttps://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build\nPlease report a bug at [https://github.com/python/mypy/issues](https://github.com/python/mypy/issues?q=sort%3Aupdated-desc+is%3Aissue+is%3Aopen)\nversion: 1.14.1\n/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\n File \"mypy/nodes.py\", line 1196, in accept\n File \"mypy/semanal.py\", line 1787, in visit_class_def\n File \"mypy/semanal.py\", line 2003, in analyze_class\n File \"mypy/semanal.py\", line 2050, in analyze_class_body_common\n File \"mypy/semanal.py\", line 2135, in apply_class_plugin_hooks\n File \"pydantic/mypy.py\", line 154, in pydantic.mypy.PydanticPlugin._pydantic_model_class_maker_callback\n File \"pydantic/mypy.py\", line 317, in pydantic.mypy.PydanticModelTransformer.transform\n File \"pydantic/mypy.py\", line 497, in pydantic.mypy.PydanticModelTransformer.add_construct_method\n File \"mypy/types.py\", line 614, in __init__\nTypeError: mypy.types.TypeVarId object expected; got int\n```\n\nIn this https://github.com/datahub-project/datahub/pull/13374\nGot this error https://github.com/datahub-project/datahub/actions/runs/14757347168/job/41428929690?pr=13374 \n\n**Expected Behavior**\n\n\u003c!--\nHow did you expect mypy to behave? It’s fine if you’re not sure your understanding is correct.\nWrite down what you thought would happen. If you expected no errors, delete this section.\n-->\n\n**Actual Behavior**\n\n\u003c!-- What went wrong? Paste mypy's output. -->\n\n**Your Environment**\n\n\u003c!-- Include as many relevant details about the environment you experienced the bug in -->\n\n- Mypy version used: 1.14.1\n- Mypy command-line flags: `mypy --show-traceback --show-error-codes src/ tests/`\n- Mypy configuration options from `mypy.ini` (and other config files):\n- Python version used: 3.10.x\n\n\u003c!-- You can freely edit this text, please remove all the lines you believe are unnecessary. -->\n","author":{"url":"https://github.com/anshbansal","@type":"Person","name":"anshbansal"},"datePublished":"2025-04-30T15:24:06Z","url":"https://github.com/python/mypy/issues/19004"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e37a9613-4b29-b111-0b7f-686626a65234 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 85B6:1E3154:3FBDD3:55CFA6:6B002AC7 |
| html-safe-nonce | f970332fefc9547cbfd0adb134bbcc39f95ed07e9bf04679c6c1eba47ea07909 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NUI2OjFFMzE1NDozRkJERDM6NTVDRkE2OjZCMDAyQUM3IiwidmlzaXRvcl9pZCI6IjIzNjI1MTIwMjQ5ODgwMzU3ODMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 01673b1502c4ab654f8b0ab124f56b932474a509a4319f21f158d51a2d06fab5 |
| hovercard-subject-tag | issue:3031643395 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/mypy/19004/issue_layout |
| twitter:image | https://opengraph.githubassets.com/477207072924b0cf9e943ddebca6aaa34bd8707a5ebc03b5286c98db8749546c/python/mypy/issues/19004 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/477207072924b0cf9e943ddebca6aaa34bd8707a5ebc03b5286c98db8749546c/python/mypy/issues/19004 |
| og:image:alt | Bug Report https://github.com/datahub-project/datahub/actions/runs/14757347168/job/41428929690?pr=13374 Traceback (most recent call last): File "mypy/semanal.py", line 7286, in accept https://mypy.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | anshbansal |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/mypy git https://github.com/python/mypy.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 7053637 |
| octolytics-dimension-repository_nwo | python/mypy |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 7053637 |
| octolytics-dimension-repository_network_root_nwo | python/mypy |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f3f3a43ca095cdea3abbb394112e971f9fdb94fa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width