Title: Silent imports is too silent · Issue #1367 · python/mypy · GitHub
Open Graph Title: Silent imports is too silent · Issue #1367 · python/mypy
X Title: Silent imports is too silent · Issue #1367 · python/mypy
Description: We've encountered a few cases where users were baffled when they found out that a certain error (to them obvious) was not reported, and the reason was that some essential file was excluded due to use of the --silent-imports (-s) flag. It...
Open Graph Description: We've encountered a few cases where users were baffled when they found out that a certain error (to them obvious) was not reported, and the reason was that some essential file was excluded due to u...
X Description: We've encountered a few cases where users were baffled when they found out that a certain error (to them obvious) was not reported, and the reason was that some essential file was excluded due ...
Opengraph URL: https://github.com/python/mypy/issues/1367
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Silent imports is too silent","articleBody":"We've encountered a few cases where users were baffled when they found out that a certain error (to them obvious) was _not_ reported, and the reason was that some essential file was excluded due to use of the --silent-imports (-s) flag.\n\nIt seems to be particularly baffling when there's a base class that comes from a silenced import. See e.g. #1363 -- once we fix that, there remains the problem that Base has type Any and so in Derived, self has effectively type Any (as do all other instances of Derived).\n\nOne possibility would be to have an option that's just like --silent-imports but which reports an error at every suppressed import (possibly displaying a different message depending on whether the module was found or not). This option might also add an additional message when a base class is undefined due to a missing import.\n\nAnother approach might be to treat this as a new reporting option.\n","author":{"url":"https://github.com/gvanrossum","@type":"Person","name":"gvanrossum"},"datePublished":"2016-04-12T17:55:45Z","url":"https://github.com/python/mypy/issues/1367"}
| 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:ca0b12f6-0121-cbd6-130b-f45c942d35d8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DC0E:251B51:49D56D:675A92:6B00748E |
| html-safe-nonce | 6b48a81b9fadba3bbf03198488753fc04838615b1d4fd435053ad62ef0d9eebb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzBFOjI1MUI1MTo0OUQ1NkQ6Njc1QTkyOjZCMDA3NDhFIiwidmlzaXRvcl9pZCI6IjUxMTEyMjk5NjQxNTg1MzA3MDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 070615c01634b164db024f9af91d0413d1538bc95e74b06b9a86069cf1b614a7 |
| hovercard-subject-tag | issue:147827210 |
| 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/1367/issue_layout |
| twitter:image | https://opengraph.githubassets.com/28e8e40a9381281cf84c2a37ea5fd90916999f859eca997807d1ac92229ae516/python/mypy/issues/1367 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/28e8e40a9381281cf84c2a37ea5fd90916999f859eca997807d1ac92229ae516/python/mypy/issues/1367 |
| og:image:alt | We've encountered a few cases where users were baffled when they found out that a certain error (to them obvious) was not reported, and the reason was that some essential file was excluded due to u... |
| 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 | 75c2b65dd205f26961d0c29afed1a8d0bb7cca9f05780571dfd1ef93eb539d16 |
| 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 | 84e563eb4b55f8fa102f325f117533cee9e3df4a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width