Title: Incremental does not re-process module with ignored import if the imported module appears on a new run · Issue #1910 · python/mypy · GitHub
Open Graph Title: Incremental does not re-process module with ignored import if the imported module appears on a new run · Issue #1910 · python/mypy
X Title: Incremental does not re-process module with ignored import if the imported module appears on a new run · Issue #1910 · python/mypy
Description: Suppose I have a.py: import b # type: ignore b.foo() and there's no b.py or b.pyi on the path. This checks without errors, and in incremental mode does not record b as a dependency of a. Now I create a valid b.py, and re-run mypy -i a.py...
Open Graph Description: Suppose I have a.py: import b # type: ignore b.foo() and there's no b.py or b.pyi on the path. This checks without errors, and in incremental mode does not record b as a dependency of a. Now I crea...
X Description: Suppose I have a.py: import b # type: ignore b.foo() and there's no b.py or b.pyi on the path. This checks without errors, and in incremental mode does not record b as a dependency of a. Now I ...
Opengraph URL: https://github.com/python/mypy/issues/1910
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Incremental does not re-process module with ignored import if the imported module appears on a new run","articleBody":"Suppose I have `a.py`:\n\n``` python\nimport b # type: ignore\nb.foo()\n```\n\nand there's no `b.py` or `b.pyi` on the path. This checks without errors, and in incremental mode does not record b as a dependency of a.\n\nNow I create a valid `b.py`, and re-run `mypy -i a.py` (this is with a warm cache). I had expected it would mark a as stale and re-parse it, but it doesn't.\n\nA suspicious change is 4889c0c11cf6642855b3f043c87b3a41f26f97b0 (\"Warn about unused '# type: ignore' comments (#1695)\") which apparently made the effect of `# type: ignore` on imports much more severe, also without `-i`.\n\n(This seems related to #1904 but I think it's a separate issue. Also, I think it's low priority since it only applies to ignored top-level imports, not to imports of submodules of packages.)\n","author":{"url":"https://github.com/gvanrossum","@type":"Person","name":"gvanrossum"},"datePublished":"2016-07-19T17:37:54Z","url":"https://github.com/python/mypy/issues/1910"}
| 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:244ed356-d77b-3bcd-8551-5a2daf994438 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C426:13710D:2CD0DD:3CD730:6B006A31 |
| html-safe-nonce | adc123672261ffaffb220d557d6f7f3633f16275174311de87c9b4eb06354dc4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDI2OjEzNzEwRDoyQ0QwREQ6M0NENzMwOjZCMDA2QTMxIiwidmlzaXRvcl9pZCI6IjQ2MzQwNjA4MTEyNjQ4NzkxNTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b2fd9d8dfc536e046de17ba17726bc1b549bd2f1a86527b984bfdb2e9d053016 |
| hovercard-subject-tag | issue:166390186 |
| 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/1910/issue_layout |
| twitter:image | https://opengraph.githubassets.com/17daa10e3278e9fe3fea3e1afa48c05a704ae8076ef6d4b5832ecace4c95cb28/python/mypy/issues/1910 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/17daa10e3278e9fe3fea3e1afa48c05a704ae8076ef6d4b5832ecace4c95cb28/python/mypy/issues/1910 |
| og:image:alt | Suppose I have a.py: import b # type: ignore b.foo() and there's no b.py or b.pyi on the path. This checks without errors, and in incremental mode does not record b as a dependency of a. Now I crea... |
| 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 | 6527e91c60c0b29d16606ff32ac5df8ecdc37a2a62205ea057a14d7762c870fa |
| 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 | 46f1cd2ae3cd8ae1a81019b5d619742e76f13bbd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width