Title: Errors not always reported for a file in incremental mode · Issue #4043 · python/mypy · GitHub
Open Graph Title: Errors not always reported for a file in incremental mode · Issue #4043 · python/mypy
X Title: Errors not always reported for a file in incremental mode · Issue #4043 · python/mypy
Description: Sometimes mypy doesn't generate an error for a module in incremental mode, even if a previous run generated errors and nothing has changed. To reproduce, first create these two files: # a.py import b b.f() # b.py def f() -> None: pass Th...
Open Graph Description: Sometimes mypy doesn't generate an error for a module in incremental mode, even if a previous run generated errors and nothing has changed. To reproduce, first create these two files: # a.py import...
X Description: Sometimes mypy doesn't generate an error for a module in incremental mode, even if a previous run generated errors and nothing has changed. To reproduce, first create these two files: # a.py im...
Opengraph URL: https://github.com/python/mypy/issues/4043
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Errors not always reported for a file in incremental mode","articleBody":"Sometimes mypy doesn't generate an error for a module in incremental mode, even if a previous run generated errors and nothing has changed.\r\n\r\nTo reproduce, first create these two files:\r\n\r\n```py\r\n# a.py\r\nimport b\r\nb.f()\r\n```\r\n\r\n```py\r\n# b.py\r\ndef f() -> None: pass\r\n```\r\n\r\nThen run mypy, and no errors are reported (as expected):\r\n```\r\n$ mypy -i a.py\r\n```\r\n\r\nNow edit `b.py` like this:\r\n```py\r\n# b.py (2)\r\ndef f(x) -> None: pass\r\n```\r\n\r\nRun mypy again, and it correctly reports an error:\r\n```\r\n$ mypy -i a.py\r\na.py:3: error: Too few arguments for \"f\"\r\n```\r\n\r\nFinally, run mypy again without changing anything, and it incorrectly gives clean output:\r\n```\r\n$ mypy -i a.py\r\n$ \u003c--- no error reported\r\n```\r\n\r\nThe expected output is the same error as in the previous run, since nothing has changed.\r\n","author":{"url":"https://github.com/JukkaL","@type":"Person","name":"JukkaL"},"datePublished":"2017-10-02T15:12:55Z","url":"https://github.com/python/mypy/issues/4043"}
| 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:5031961d-0974-1afb-2785-db7d590c1fb7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AA9C:390AA2:1D62ABE:27D10E5:6B000CD2 |
| html-safe-nonce | 8a1b4a2302c3841e7b736a9f9baeaa67d609e02b596ac1367e4c832e3392b01e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTlDOjM5MEFBMjoxRDYyQUJFOjI3RDEwRTU6NkIwMDBDRDIiLCJ2aXNpdG9yX2lkIjoiNzQzMzkyOTM0NTYxOTQ2MzM3OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9b75ff238102d15bd4305ea8a3d476cf655738a48769305be4aa10faae0bbe81 |
| hovercard-subject-tag | issue:262119551 |
| 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/4043/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fb56179b12239a7a6262b5e3d9950cf79356db28d80b0c49df4975cce58e1e51/python/mypy/issues/4043 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fb56179b12239a7a6262b5e3d9950cf79356db28d80b0c49df4975cce58e1e51/python/mypy/issues/4043 |
| og:image:alt | Sometimes mypy doesn't generate an error for a module in incremental mode, even if a previous run generated errors and nothing has changed. To reproduce, first create these two files: # a.py import... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JukkaL |
| hostname | github.com |
| expected-hostname | github.com |
| None | cf7ee0062053ad9eb05b6e5de57bd96c2055708bcbada4144946b5ec129cf1d7 |
| 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 | 9cab7de176a56362d2aabcbb4d1e07e846eba8a0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width