Title: New crashes related to partial types · Issue #3986 · python/mypy · GitHub
Open Graph Title: New crashes related to partial types · Issue #3986 · python/mypy
X Title: New crashes related to partial types · Issue #3986 · python/mypy
Description: We recently upgraded to a newer mypy version (c000062) and are seeing new crashes. One has a traceback ending in [...] File "/Users/damien/src/client/.mypy/venv/lib/python3.6/site-packages/mypy/checkexpr.py", line 753, in infer_function_...
Open Graph Description: We recently upgraded to a newer mypy version (c000062) and are seeing new crashes. One has a traceback ending in [...] File "/Users/damien/src/client/.mypy/venv/lib/python3.6/site-packages/mypy/che...
X Description: We recently upgraded to a newer mypy version (c000062) and are seeing new crashes. One has a traceback ending in [...] File "/Users/damien/src/client/.mypy/venv/lib/python3.6/site-packages/myp...
Opengraph URL: https://github.com/python/mypy/issues/3986
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"New crashes related to partial types","articleBody":"We recently upgraded to a newer mypy version (c00006211f15adb315d5d3ef5bd0474eed0dfdad) and are seeing new crashes. One has a traceback ending in\r\n```\r\n[...]\r\nFile \"/Users/damien/src/client/.mypy/venv/lib/python3.6/site-packages/mypy/checkexpr.py\", line 753, in infer_function_type_arguments_using_context\r\n args = infer_type_arguments(callable.type_var_ids(), ret_type, erased_ctx)\r\nFile \"/Users/damien/src/client/.mypy/venv/lib/python3.6/site-packages/mypy/infer.py\", line 43, in infer_type_arguments\r\n return solve_constraints(type_var_ids, constraints)\r\nFile \"/Users/damien/src/client/.mypy/venv/lib/python3.6/site-packages/mypy/solve.py\", line 52, in solve_constraints\r\n top = meet_types(top, c.target)\r\nFile \"/Users/damien/src/client/.mypy/venv/lib/python3.6/site-packages/mypy/meet.py\", line 25, in meet_types\r\n return t.accept(TypeMeetVisitor(s))\r\nFile \"/Users/damien/src/client/.mypy/venv/lib/python3.6/site-packages/mypy/types.py\", line 1287, in accept\r\n return visitor.visit_partial_type(self)\r\nFile \"/Users/damien/src/client/.mypy/venv/lib/python3.6/site-packages/mypy/meet.py\", line 288, in visit_partial_type\r\n assert False, 'Internal error'\r\nAssertionError: Internal error\r\n```\r\nAnd the other:\r\n```\r\n File \"/Users/guido/src/server/.mypy/venv/lib/python3.6/site-packages/mypy/nodes.py\", line 817, in accept\r\n return visitor.visit_assignment_stmt(self)\r\n File \"/Users/guido/src/server/.mypy/venv/lib/python3.6/site-packages/mypy/checker.py\", line 1307, in visit_assignment_stmt\r\n self.check_assignment(s.lvalues[-1], s.rvalue, s.type is None, s.new_syntax)\r\n File \"/Users/guido/src/server/.mypy/venv/lib/python3.6/site-packages/mypy/checker.py\", line 1367, in check_assignment\r\n self.infer_partial_type(lvalue_type.var, lvalue, rvalue_type)\r\n File \"/Users/guido/src/server/.mypy/venv/lib/python3.6/site-packages/mypy/checker.py\", line 1833, in infer_partial_type\r\n self.set_inferred_type(name, lvalue, partial_type)\r\n File \"/Users/guido/src/server/.mypy/venv/lib/python3.6/site-packages/mypy/checker.py\", line 1848, in set_inferred_type\r\n assert lvalue.def_var is not None\r\nAssertionError: \r\n```\r\nI haven't investigated these nor tried to reduce them. I do have a repeatable demo of the latter.","author":{"url":"https://github.com/gvanrossum","@type":"Person","name":"gvanrossum"},"datePublished":"2017-09-22T19:51:09Z","url":"https://github.com/python/mypy/issues/3986"}
| 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:6d384ae0-d8c8-3181-561a-4480d1411039 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 94C0:1756E4:1057574:1559248:6B00055A |
| html-safe-nonce | f478eb0375643e841e894cc37b0b824eb092329cc8c1b746402d1f578d43aadc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NEMwOjE3NTZFNDoxMDU3NTc0OjE1NTkyNDg6NkIwMDA1NUEiLCJ2aXNpdG9yX2lkIjoiNjUwMDEyMjg3NzU4NzYyMTIxMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5eaa5f3d12632f112a31e18e25c0addfef1118c13e35728ae0d22f2fe5786a08 |
| hovercard-subject-tag | issue:259919101 |
| 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/3986/issue_layout |
| twitter:image | https://opengraph.githubassets.com/648b09024bee5052c15dba2e50e69c3c4258cd6d8ca6966229bbaa4bf6c3da69/python/mypy/issues/3986 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/648b09024bee5052c15dba2e50e69c3c4258cd6d8ca6966229bbaa4bf6c3da69/python/mypy/issues/3986 |
| og:image:alt | We recently upgraded to a newer mypy version (c000062) and are seeing new crashes. One has a traceback ending in [...] File "/Users/damien/src/client/.mypy/venv/lib/python3.6/site-packages/mypy/che... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gvanrossum |
| 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 | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width