Title: Mypy crashes with 1.11.1 version and Pydantic 1.10.11 · Issue #17671 · python/mypy · GitHub
Open Graph Title: Mypy crashes with 1.11.1 version and Pydantic 1.10.11 · Issue #17671 · python/mypy
X Title: Mypy crashes with 1.11.1 version and Pydantic 1.10.11 · Issue #17671 · python/mypy
Description: Crash Report Updated mypy to 1.11.1 version. Run mypy and faced with error. It doesn't crash with mypy 1.10.1 Traceback ❯ mypy xxx/ --show-traceback /home/omerfi/xxx/.venv/lib/python3.10/site-packages/pydantic/env_settings.py:23: error: ...
Open Graph Description: Crash Report Updated mypy to 1.11.1 version. Run mypy and faced with error. It doesn't crash with mypy 1.10.1 Traceback ❯ mypy xxx/ --show-traceback /home/omerfi/xxx/.venv/lib/python3.10/site-packa...
X Description: Crash Report Updated mypy to 1.11.1 version. Run mypy and faced with error. It doesn't crash with mypy 1.10.1 Traceback ❯ mypy xxx/ --show-traceback /home/omerfi/xxx/.venv/lib/python3.10/site-p...
Opengraph URL: https://github.com/python/mypy/issues/17671
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Mypy crashes with 1.11.1 version and Pydantic 1.10.11","articleBody":"\u003c!--\r\n Use this form only if mypy reports an \"INTERNAL ERROR\" and/or gives a traceback.\r\n Please include the traceback and all other messages below (use `mypy --show-traceback`).\r\n-->\r\n\r\n**Crash Report**\r\n\r\nUpdated mypy to 1.11.1 version. Run mypy and faced with error.\r\nIt doesn't crash with mypy 1.10.1\r\n\r\n**Traceback**\r\n\r\n```\r\n❯ mypy xxx/ --show-traceback\r\n/home/omerfi/xxx/.venv/lib/python3.10/site-packages/pydantic/env_settings.py:23: error: INTERNAL ERROR -- Please try using mypy master on GitHub:\r\nhttps://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build\r\nPlease report a bug at https://github.com/python/mypy/issues\r\nversion: 1.11.1\r\nTraceback (most recent call last):\r\n File \"mypy/semanal.py\", line 7092, in accept\r\n File \"mypy/nodes.py\", line 1183, in accept\r\n File \"mypy/semanal.py\", line 1700, in visit_class_def\r\n File \"mypy/semanal.py\", line 1891, in analyze_class\r\n File \"mypy/semanal.py\", line 1925, in analyze_class_body_common\r\n File \"mypy/semanal.py\", line 2010, in apply_class_plugin_hooks\r\n File \"pydantic/mypy.py\", line 154, in pydantic.mypy.PydanticPlugin._pydantic_model_class_maker_callback\r\n File \"pydantic/mypy.py\", line 317, in pydantic.mypy.PydanticModelTransformer.transform\r\n File \"pydantic/mypy.py\", line 497, in pydantic.mypy.PydanticModelTransformer.add_construct_method\r\n File \"mypy/types.py\", line 607, in __init__\r\nTypeError: mypy.types.TypeVarId object expected; got int\r\n/home/omerfi/xxx/.venv/lib/python3.10/site-packages/pydantic/env_settings.py:23: : note: use --pdb to drop into pdb\r\n```\r\n\r\n**To Reproduce**\r\n\r\nI created a POC repository. You can follow the instructions in the README and face the error yourself: https://github.com/OmerFI/mypyfailproject\r\n\r\n**Your Environment**\r\n\r\n\u003c!-- Include as many relevant details about the environment you experienced the bug in -->\r\n\r\n- Mypy version used: 1.11.1\r\n- Mypy command-line flags: -\r\n- Mypy configuration options from `mypy.ini` (and other config files): https://github.com/OmerFI/mypyfailproject/blob/main/mypy.ini\r\n- Python version used: 3.10.13\r\n- Operating system and version: Ubuntu 22.04.2 LTS (WSL)\r\n\r\n\u003c!--\r\nYou can freely edit this text, please remove all the lines\r\nyou believe are unnecessary.\r\n-->\r\n","author":{"url":"https://github.com/OmerFI","@type":"Person","name":"OmerFI"},"datePublished":"2024-08-13T10:00:51Z","url":"https://github.com/python/mypy/issues/17671"}
| 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:7d539611-2e14-afe1-958c-90549f703b03 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CF94:77A5A:23F4355:2EE751E:6AFFF45B |
| html-safe-nonce | 2a7cb9a0881da587e079a8c555084cf0cf69028fad36791baba5ddb9d95339a0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRjk0Ojc3QTVBOjIzRjQzNTU6MkVFNzUxRTo2QUZGRjQ1QiIsInZpc2l0b3JfaWQiOiIxMDY5NDkyNjM0MjYwNTk5OTAwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3e281ca7b56b9ca81f1878f0ee1ba2075bfeda1226a0050eec568de675c052a9 |
| hovercard-subject-tag | issue:2462935010 |
| 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/17671/issue_layout |
| twitter:image | https://opengraph.githubassets.com/68502c702035d94379faea715ec8a39a4ff6404cf71152c61ab5e4e17a775150/python/mypy/issues/17671 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/68502c702035d94379faea715ec8a39a4ff6404cf71152c61ab5e4e17a775150/python/mypy/issues/17671 |
| og:image:alt | Crash Report Updated mypy to 1.11.1 version. Run mypy and faced with error. It doesn't crash with mypy 1.10.1 Traceback ❯ mypy xxx/ --show-traceback /home/omerfi/xxx/.venv/lib/python3.10/site-packa... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | OmerFI |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0a0d8686a27478df474dd7415776a7a080cde8838b3cd92ea7601187572e5729 |
| 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 | 16a11879678aaf97e2a42c33ee70830aa084fa37 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width