Title: dmypy: AssertionError: builtins.int crash for running a second time w/ source changes · Issue #14645 · python/mypy · GitHub
Open Graph Title: dmypy: AssertionError: builtins.int crash for running a second time w/ source changes · Issue #14645 · python/mypy
X Title: dmypy: AssertionError: builtins.int crash for running a second time w/ source changes · Issue #14645 · python/mypy
Description: This issue is very similar to #12744, and I've found two of our checkouts that can reproduce this one with dmypy 1.0.0, steps are below Python 3.10.0 on this end if it matters, using mypy / dmypy 1.0.0 released on pypi git clone SQLAlche...
Open Graph Description: This issue is very similar to #12744, and I've found two of our checkouts that can reproduce this one with dmypy 1.0.0, steps are below Python 3.10.0 on this end if it matters, using mypy / dmypy 1...
X Description: This issue is very similar to #12744, and I've found two of our checkouts that can reproduce this one with dmypy 1.0.0, steps are below Python 3.10.0 on this end if it matters, using mypy / dmy...
Opengraph URL: https://github.com/python/mypy/issues/14645
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"dmypy: AssertionError: builtins.int crash for running a second time w/ source changes","articleBody":"This issue is very similar to #12744, and I've found two of our checkouts that can reproduce this one with dmypy 1.0.0, steps are below\r\n\r\n\r\n1. Python 3.10.0 on this end if it matters, using mypy / dmypy 1.0.0 released on pypi\r\n2. git clone SQLAlchemy from gerrit and cd into new directory:\r\n\r\n```\r\ngit clone https://gerrit.sqlalchemy.org/sqlalchemy/sqlalchemy\r\ncd sqlalchemy\r\n```\r\n\r\n3. download the first specific patch:\r\n\r\n```\r\ngit fetch https://gerrit.sqlalchemy.org/sqlalchemy/sqlalchemy refs/changes/32/4432/2 && git checkout FETCH_HEAD\r\n```\r\n\r\n4. start and run dmypy on lib\r\n```\r\ndmypy start\r\ndmypy check lib\r\n```\r\n\r\n5. checkout second specific patch:\r\n\r\n```\r\ngit fetch https://gerrit.sqlalchemy.org/sqlalchemy/sqlalchemy refs/changes/32/4432/3 && git checkout FETCH_HEAD\r\n```\r\n\r\n6. run dmypy again\r\n\r\n```\r\ndmypy check lib\r\n```\r\n\r\n\r\nfor me, I get stack trace:\r\n\r\n\r\n```\r\nDaemon crashed!\r\nTraceback (most recent call last):\r\n File \"mypy/dmypy_server.py\", line 229, in serve\r\n File \"mypy/dmypy_server.py\", line 274, in run_command\r\n File \"mypy/dmypy_server.py\", line 352, in cmd_check\r\n File \"mypy/dmypy_server.py\", line 411, in check\r\n File \"mypy/dmypy_server.py\", line 596, in fine_grained_increment_follow_imports\r\n File \"mypy/server/update.py\", line 267, in update\r\n File \"mypy/server/update.py\", line 369, in update_one\r\n File \"mypy/server/update.py\", line 452, in update_module\r\n File \"mypy/server/update.py\", line 881, in propagate_changes_using_dependencies\r\n File \"mypy/server/update.py\", line 1009, in reprocess_nodes\r\n File \"mypy/semanal_main.py\", line 137, in semantic_analysis_for_targets\r\n File \"mypy/semanal_main.py\", line 220, in process_top_levels\r\n File \"mypy/semanal_main.py\", line 348, in semantic_analyze_target\r\n File \"mypy/semanal.py\", line 595, in refresh_partial\r\n File \"mypy/semanal.py\", line 606, in refresh_top_level\r\n File \"mypy/semanal.py\", line 6212, in accept\r\n File \"mypy/errors.py\", line 1167, in report_internal_error\r\n File \"mypy/semanal.py\", line 6210, in accept\r\n File \"mypy/nodes.py\", line 1301, in accept\r\n File \"mypy/semanal.py\", line 2702, in visit_assignment_stmt\r\n File \"mypy/semanal.py\", line 3441, in check_and_set_up_type_alias\r\n File \"mypy/semanal.py\", line 3337, in analyze_alias\r\n File \"mypy/typeanal.py\", line 155, in analyze_type_alias\r\n File \"mypy/types.py\", line 883, in accept\r\n File \"mypy/typeanal.py\", line 253, in visit_unbound_type\r\n File \"mypy/typeanal.py\", line 388, in visit_unbound_type_nonoptional\r\n File \"mypy/typeanal.py\", line 587, in try_analyze_special_unbound_type\r\n File \"mypy/typeanal.py\", line 1327, in analyze_literal_type\r\n File \"mypy/typeanal.py\", line 1393, in analyze_literal_param\r\n File \"mypy/typeanal.py\", line 1572, in named_type\r\n File \"mypy/typeanal.py\", line 250, in lookup_fully_qualified\r\n File \"mypy/semanal.py\", line 5525, in lookup_fully_qualified\r\nAssertionError: builtins.int\r\n\r\n\r\n```\r\n\r\n\r\n","author":{"url":"https://github.com/zzzeek","@type":"Person","name":"zzzeek"},"datePublished":"2023-02-08T14:33:59Z","url":"https://github.com/python/mypy/issues/14645"}
| 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:3e7cca93-8d2c-94e4-17c9-60e2f063e492 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E0F4:12476C:1AE78AF:236B526:6B002555 |
| html-safe-nonce | f324806acbf97c3c976b062804c104a10ed1a1d005c3353824a9792276204677 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMEY0OjEyNDc2QzoxQUU3OEFGOjIzNkI1MjY6NkIwMDI1NTUiLCJ2aXNpdG9yX2lkIjoiNzE0MjI5OTU3MTU3MjQ1MDY0NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 008bddb8a3ba2bbcb94e5002bcc87f4b8a167439f3fd674da5e86c5804ff4882 |
| hovercard-subject-tag | issue:1576233042 |
| 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/14645/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8fc0a5f1eec56f6016fa700126e33b013f24afaa9d784a1ca96e6309b3b9fdae/python/mypy/issues/14645 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8fc0a5f1eec56f6016fa700126e33b013f24afaa9d784a1ca96e6309b3b9fdae/python/mypy/issues/14645 |
| og:image:alt | This issue is very similar to #12744, and I've found two of our checkouts that can reproduce this one with dmypy 1.0.0, steps are below Python 3.10.0 on this end if it matters, using mypy / dmypy 1... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zzzeek |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0 |
| 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 | 44c658b24abf00491fb7ae5f56d42c9f38cbeab2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width