Title: Setting module search path in the config file · Issue #2323 · python/mypy · GitHub
Open Graph Title: Setting module search path in the config file · Issue #2323 · python/mypy
X Title: Setting module search path in the config file · Issue #2323 · python/mypy
Description: I wonder if we should support configuring the module search path (equivalent to MYPYPATH) in the mypy config file. I have a feeling that this was discussed before, but maybe we can revisit this. Here's one particular use case I'm thinkin...
Open Graph Description: I wonder if we should support configuring the module search path (equivalent to MYPYPATH) in the mypy config file. I have a feeling that this was discussed before, but maybe we can revisit this. He...
X Description: I wonder if we should support configuring the module search path (equivalent to MYPYPATH) in the mypy config file. I have a feeling that this was discussed before, but maybe we can revisit this. He...
Opengraph URL: https://github.com/python/mypy/issues/2323
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Setting module search path in the config file","articleBody":"I wonder if we should support configuring the module search path (equivalent to `MYPYPATH`) in the mypy config file. I have a feeling that this was discussed before, but maybe we can revisit this. \n\nHere's one particular use case I'm thinking about: specifying a directory for custom stubs. For example, I could have a `stubs/` subdirectory in my repository for custom stubs that I've written. It seems reasonable to be able to add this directory to the search path automatically so I won't always have to use a script that sets `MYPYPATH` for running mypy correctly. If I use `--silent-imports`, a mypy run with accidentally missing search path items will pass without errors and can easily generate false negatives.\n","author":{"url":"https://github.com/JukkaL","@type":"Person","name":"JukkaL"},"datePublished":"2016-10-25T10:56:05Z","url":"https://github.com/python/mypy/issues/2323"}
| 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:d3500dc9-20a3-fd7e-78b1-5d097537e26e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9492:27810C:2BCB53:3BEB1E:6B0069FE |
| html-safe-nonce | 1c69bb57390081afe448f31be6ed225eeb8ffbfb4a6d8e05548d8cba7a7f6a52 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDkyOjI3ODEwQzoyQkNCNTM6M0JFQjFFOjZCMDA2OUZFIiwidmlzaXRvcl9pZCI6IjI0OTkyNjA3Mjk5NzA5NDQ1MTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4a671bb5fead46545c0b036abd5aee81e15f7250a1fc8ec1b0664289634ca318 |
| hovercard-subject-tag | issue:185083330 |
| 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/2323/issue_layout |
| twitter:image | https://opengraph.githubassets.com/34e9e14211d208eeac2d1e7583197e31864c67feba91bb285ea05d18c051b662/python/mypy/issues/2323 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/34e9e14211d208eeac2d1e7583197e31864c67feba91bb285ea05d18c051b662/python/mypy/issues/2323 |
| og:image:alt | I wonder if we should support configuring the module search path (equivalent to MYPYPATH) in the mypy config file. I have a feeling that this was discussed before, but maybe we can revisit this. He... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JukkaL |
| 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