Title: Stop suggesting MYPYPATH? · Issue #5241 · python/mypy · GitHub
Open Graph Title: Stop suggesting MYPYPATH? · Issue #5241 · python/mypy
X Title: Stop suggesting MYPYPATH? · Issue #5241 · python/mypy
Description: Currently whenever mypy fails to find an import it prints a note suggesting to set MYPYPATH, e.g.: main:1: error: Cannot find module named 'a.b.c' main:1: note: (Perhaps setting MYPYPATH or using the "--ignore-missing-imports" flag would...
Open Graph Description: Currently whenever mypy fails to find an import it prints a note suggesting to set MYPYPATH, e.g.: main:1: error: Cannot find module named 'a.b.c' main:1: note: (Perhaps setting MYPYPATH or using t...
X Description: Currently whenever mypy fails to find an import it prints a note suggesting to set MYPYPATH, e.g.: main:1: error: Cannot find module named 'a.b.c' main:1: note: (Perhaps setting MYPYPATH or...
Opengraph URL: https://github.com/python/mypy/issues/5241
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Stop suggesting MYPYPATH?","articleBody":"Currently whenever mypy fails to find an import it prints a note suggesting to set MYPYPATH, e.g.:\r\n```\r\nmain:1: error: Cannot find module named 'a.b.c'\r\nmain:1: note: (Perhaps setting MYPYPATH or using the \"--ignore-missing-imports\" flag would help)\r\n```\r\nIn most cases setting MYPYPATH is an anti-pattern, since the issue is likely that this is a third-party module for which no stubs exist in typeshed (nor anywhere else). We used to see a lot of problems when people added site-packages to MYPYPATH.\r\n\r\nMaybe we can add a more nuanced explanation to the docs and link to the docs from the note instead?","author":{"url":"https://github.com/gvanrossum","@type":"Person","name":"gvanrossum"},"datePublished":"2018-06-19T17:24:34Z","url":"https://github.com/python/mypy/issues/5241"}
| 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:1b7c9fad-61d7-617d-ff3d-5f0b8ec2a989 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B2D0:24D752:C89497:10CC046:6B005071 |
| html-safe-nonce | d0e2ae2b5d73c25d1591d1108d51486ea6fb149485b90bb457d6018dc4d9b547 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMkQwOjI0RDc1MjpDODk0OTc6MTBDQzA0Njo2QjAwNTA3MSIsInZpc2l0b3JfaWQiOiI4NTc5ODM4MjIwODk4OTQ3MTg1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 96156204d55992140632b5670a5cfd371dddad0e5fd331b451f924dee0d624aa |
| hovercard-subject-tag | issue:333766622 |
| 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/5241/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c2ab6b5aad78fef07ba71c2efb03e92a3ad5c433cf4dbd94d1fc9cdbbd66a7ed/python/mypy/issues/5241 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c2ab6b5aad78fef07ba71c2efb03e92a3ad5c433cf4dbd94d1fc9cdbbd66a7ed/python/mypy/issues/5241 |
| og:image:alt | Currently whenever mypy fails to find an import it prints a note suggesting to set MYPYPATH, e.g.: main:1: error: Cannot find module named 'a.b.c' main:1: note: (Perhaps setting MYPYPATH or using t... |
| 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 | f420f4996e6b1ff1ccd6d7683f8134f4b5f0f8a50124c210dbfe7490e5644abb |
| 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 | 26e00df917aba0f128135dc073ea0c5e33a70d40 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width