Title: `# type: ignore`d imports aren't picked up when they are added in incremental mode · Issue #4856 · python/mypy · GitHub
Open Graph Title: `# type: ignore`d imports aren't picked up when they are added in incremental mode · Issue #4856 · python/mypy
X Title: `# type: ignore`d imports aren't picked up when they are added in incremental mode · Issue #4856 · python/mypy
Description: [case testSuppressedImportAdded1] import a [file a.py] import foo # type: ignore [file foo.py.2] 2+'2' [out] [out2] tmp/foo.py:1: error: Unsupported operand types for + ("int" and "str") Reports no error in the second pass. We do pick it...
Open Graph Description: [case testSuppressedImportAdded1] import a [file a.py] import foo # type: ignore [file foo.py.2] 2+'2' [out] [out2] tmp/foo.py:1: error: Unsupported operand types for + ("int" and "str") Reports no...
X Description: [case testSuppressedImportAdded1] import a [file a.py] import foo # type: ignore [file foo.py.2] 2+'2' [out] [out2] tmp/foo.py:1: error: Unsupported operand types for + ("int" and...
Opengraph URL: https://github.com/python/mypy/issues/4856
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`# type: ignore`d imports aren't picked up when they are added in incremental mode","articleBody":"```\r\n[case testSuppressedImportAdded1]\r\nimport a\r\n[file a.py]\r\nimport foo # type: ignore\r\n[file foo.py.2]\r\n2+'2'\r\n[out]\r\n[out2]\r\ntmp/foo.py:1: error: Unsupported operand types for + (\"int\" and \"str\")\r\n```\r\n\r\nReports no error in the second pass.\r\n\r\nWe *do* pick it up and properly update dependencies to it if it is specified on the command line, so this only comes up when following imports.","author":{"url":"https://github.com/msullivan","@type":"Person","name":"msullivan"},"datePublished":"2018-04-04T20:26:13Z","url":"https://github.com/python/mypy/issues/4856"}
| 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:1cc16377-025d-37eb-216e-1350a02785c3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 87F8:251AC0:B36EBC:EDFBA0:6B0048BD |
| html-safe-nonce | a8d08761d300c449bbbec34481688326ed1258cfd670a3693ffa340592a36889 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4N0Y4OjI1MUFDMDpCMzZFQkM6RURGQkEwOjZCMDA0OEJEIiwidmlzaXRvcl9pZCI6IjUzOTA4NTk1OTA5OTA1Nzk5MDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1a49bfb6d2bc2ec666a3d8e23f70f5f8797838764a1e3d01afbe01c475e9b679 |
| hovercard-subject-tag | issue:311378467 |
| 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/4856/issue_layout |
| twitter:image | https://opengraph.githubassets.com/aed09b68b4b780c4382c94fd40c13dda905b06010046812b5f4e0ea026dcccbe/python/mypy/issues/4856 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/aed09b68b4b780c4382c94fd40c13dda905b06010046812b5f4e0ea026dcccbe/python/mypy/issues/4856 |
| og:image:alt | [case testSuppressedImportAdded1] import a [file a.py] import foo # type: ignore [file foo.py.2] 2+'2' [out] [out2] tmp/foo.py:1: error: Unsupported operand types for + ("int" and "str") Reports no... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | msullivan |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0 |
| 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 | f3f3a43ca095cdea3abbb394112e971f9fdb94fa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width