Title: Support loading `stubs/` from typeshed · Issue #12241 · python/mypy · GitHub
Open Graph Title: Support loading `stubs/` from typeshed · Issue #12241 · python/mypy
X Title: Support loading `stubs/` from typeshed · Issue #12241 · python/mypy
Description: Optional static typing for Python. Contribute to python/mypy development by creating an account on GitHub.
Open Graph Description: Optional static typing for Python. Contribute to python/mypy development by creating an account on GitHub.
X Description: Optional static typing for Python. Contribute to python/mypy development by creating an account on GitHub.
Opengraph URL: https://github.com/python/mypy
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support loading `stubs/` from typeshed","articleBody":"When I create a file `foo.py` with `import toml` and execute `mypy foo.py --custom-typeshed-dir my-typeshed/` I get:\r\n\r\n```\r\nfoo.py:1: error: Library stubs not installed for \"toml\" (or incompatible with Python 3.9)\r\nfoo.py:1: note: Hint: \"python3 -m pip install types-toml\"\r\nfoo.py:1: note: (or run \"mypy --install-types\" to install all missing stub packages)\r\nfoo.py:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports\r\nFound 1 error in 1 file (checked 1 source file)\r\n```\r\n\r\nAlthough `my-typeshed/stubs/` contains `toml/`.\r\n\r\nI find this really inconvenient because I'd like to test my third-party stub typeshed contributions with mypy.\r\n\r\nIt's worth noting that pyright handles this, `pyright foo.py --typeshed-path my-typeshed/` works as expected.","author":{"url":"https://github.com/not-my-profile","@type":"Person","name":"not-my-profile"},"datePublished":"2022-02-22T18:50:58Z","url":"https://github.com/python/mypy/issues/12241"}
| 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 | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:1bdc0f43-3bb7-4ae3-58da-234d6ff1eeb5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8A7A:1A7566:34DA34:475EF3:6B00283B |
| html-safe-nonce | ae96b0fe35e46cdc41a8c66e469b7ed144367290b0ef30da1e3160fdd1cf0444 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QTdBOjFBNzU2NjozNERBMzQ6NDc1RUYzOjZCMDAyODNCIiwidmlzaXRvcl9pZCI6IjkyMjMxNTgxOTY1MjMyNDc2NzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 93100c777b3fb91be0fb54e9cf4635ee84e86c61210358cd859edf046fd28b7c |
| hovercard-subject-tag | repository:7053637 |
| 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/python/mypy/issues/12241 |
| twitter:image | https://opengraph.githubassets.com/f79ae5636353a0db17350af0a02700f2e9c3bbcf096f9450bf0c369c77cd1022/python/mypy |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f79ae5636353a0db17350af0a02700f2e9c3bbcf096f9450bf0c369c77cd1022/python/mypy |
| og:image:alt | Optional static typing for Python. Contribute to python/mypy development by creating an account on GitHub. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0 |
| turbo-cache-control | no-cache |
| 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