Title: Implicitly imported submodules are not always diagnosed · Issue #2271 · python/mypy · GitHub
Open Graph Title: Implicitly imported submodules are not always diagnosed · Issue #2271 · python/mypy
X Title: Implicitly imported submodules are not always diagnosed · Issue #2271 · python/mypy
Description: Python has an annoying misfeature where if you write e.g. "import tornado" and then use "tornado.ioloop.IOLoop", it may or may not work depending on whether some other module has already imported "tornado.ioloop". (Here ioloop is a submo...
Open Graph Description: Python has an annoying misfeature where if you write e.g. "import tornado" and then use "tornado.ioloop.IOLoop", it may or may not work depending on whether some other module has already imported "...
X Description: Python has an annoying misfeature where if you write e.g. "import tornado" and then use "tornado.ioloop.IOLoop", it may or may not work depending on whether some other module ha...
Opengraph URL: https://github.com/python/mypy/issues/2271
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Implicitly imported submodules are not always diagnosed","articleBody":"Python has an annoying misfeature where if you write e.g. \"import tornado\" and then use \"tornado.ioloop.IOLoop\", it may or may not work depending on whether some other module has already imported \"tornado.ioloop\". (Here ioloop is a submodule of the tornado package, and tornado's `__init__.py` does _not_ import ioloop in any form.) Currently mypy duplicates that behavior, and this backfires in incremental mode. While we could fix that, we should consider instead always diagnosing this error.\n\n(This came up in https://github.com/python/mypy/issues/2036#issuecomment-254326525.)\n","author":{"url":"https://github.com/gvanrossum","@type":"Person","name":"gvanrossum"},"datePublished":"2016-10-18T02:04:20Z","url":"https://github.com/python/mypy/issues/2271"}
| 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:adc565a4-1f58-11ed-ec7f-83b6e8b364e4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C040:1A77D:D406C:11DBFE:6B001CD3 |
| html-safe-nonce | afc63efa434d92cd0434b6f743e67a13a53108508ce5c50bb9c8a9ff6cf61fb1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDQwOjFBNzdEOkQ0MDZDOjExREJGRTo2QjAwMUNEMyIsInZpc2l0b3JfaWQiOiIxMzU1Mzc3OTc1NDQ4NTc1MTg3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 8e43fd91fa1e75d80bd5825fc2ac8adc3279347310d59ca549608a20846719ef |
| hovercard-subject-tag | issue:183572328 |
| 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/2271/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ae20e2789c2bf21e1f78f98aeaf595bb9c49f5e76d5454fe6766cb46bdfdd72c/python/mypy/issues/2271 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ae20e2789c2bf21e1f78f98aeaf595bb9c49f5e76d5454fe6766cb46bdfdd72c/python/mypy/issues/2271 |
| og:image:alt | Python has an annoying misfeature where if you write e.g. "import tornado" and then use "tornado.ioloop.IOLoop", it may or may not work depending on whether some other module has already imported "... |
| 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 | 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