Title: treat a package as if it had py.typed · Issue #10783 · python/mypy · GitHub
Open Graph Title: treat a package as if it had py.typed · Issue #10783 · python/mypy
X Title: treat a package as if it had py.typed · Issue #10783 · python/mypy
Description: I would like to be able to force mypy to look at the types provided by a package even if it does not provide a py.typed file. I've found that some packages I use have added good type annotations, but didn't realize they needed to provide...
Open Graph Description: I would like to be able to force mypy to look at the types provided by a package even if it does not provide a py.typed file. I've found that some packages I use have added good type annotations, b...
X Description: I would like to be able to force mypy to look at the types provided by a package even if it does not provide a py.typed file. I've found that some packages I use have added good type annotation...
Opengraph URL: https://github.com/python/mypy/issues/10783
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"treat a package as if it had py.typed","articleBody":"I would like to be able to force mypy to look at the types provided by a package even if it does not provide a py.typed file. I've found that some packages I use have added good type annotations, but didn't realize they needed to provide a py.typed file as well. Some of these packages are only lightly maintained, so they may not get a new release with the file included any time soon.\r\n\r\nmypy will ignore typing if py.typed isn't present, but it seems like that's something that should be overridable, just like you can tell mypy to `ignore_missing_imports` if a package doesn't have typing. I suggest a corresponding configuration such as `assume_typed_imports`.\r\n\r\nAn example of such a package is [inflect](https://github.com/jaraco/inflect). I opened an issue https://github.com/jaraco/inflect/issues/133 and PR https://github.com/jaraco/inflect/issues/135 to add the file, but it hasn't received attention. I have to add `ignore_missing_imports` currently.","author":{"url":"https://github.com/davidism","@type":"Person","name":"davidism"},"datePublished":"2021-07-07T17:35:23Z","url":"https://github.com/python/mypy/issues/10783"}
| 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:9025d6a2-e220-bb43-b921-556a86ef8011 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B848:2C3D4F:475077:5FC237:6B002CA7 |
| html-safe-nonce | 57814d68ddad516492a7bd4fc1b463eb77e16fb01755f8e9805c0d10de145d22 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODQ4OjJDM0Q0Rjo0NzUwNzc6NUZDMjM3OjZCMDAyQ0E3IiwidmlzaXRvcl9pZCI6IjkwMzM4NjY5OTE5NDQ4NzEwNzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d8e762e9082353af09f5c7141fd6aef2676447840d85182044b07a73b8d2d369 |
| hovercard-subject-tag | issue:939113224 |
| 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/10783/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2eb93c0310bd1298473cc3b7b544e3a97776ce60a9f77bd2ecf6b24cefcd3ba3/python/mypy/issues/10783 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2eb93c0310bd1298473cc3b7b544e3a97776ce60a9f77bd2ecf6b24cefcd3ba3/python/mypy/issues/10783 |
| og:image:alt | I would like to be able to force mypy to look at the types provided by a package even if it does not provide a py.typed file. I've found that some packages I use have added good type annotations, b... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | davidism |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0 |
| 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 | f3f3a43ca095cdea3abbb394112e971f9fdb94fa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width