Title: Using sphinx documentation annotations for type checking in py2 mode · Issue #1015 · python/mypy · GitHub
Open Graph Title: Using sphinx documentation annotations for type checking in py2 mode · Issue #1015 · python/mypy
X Title: Using sphinx documentation annotations for type checking in py2 mode · Issue #1015 · python/mypy
Description: So I've been able to gather that mypy has a python 2 mode, triggered via --py2, and that the way to annotate types in this mode was via comments. I've been using pycharm on one side, and jedi for completion in vim on the other side for q...
Open Graph Description: So I've been able to gather that mypy has a python 2 mode, triggered via --py2, and that the way to annotate types in this mode was via comments. I've been using pycharm on one side, and jedi for c...
X Description: So I've been able to gather that mypy has a python 2 mode, triggered via --py2, and that the way to annotate types in this mode was via comments. I've been using pycharm on one side, and je...
Mail addresses
notifications@github.com
Opengraph URL: https://github.com/python/mypy/issues/1015
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Using sphinx documentation annotations for type checking in py2 mode","articleBody":"So I've been able to gather that mypy has a python 2 mode, triggered via --py2, and that the way to annotate types in this mode was via comments.\n\nI've been using pycharm on one side, and jedi for completion in vim on the other side for quite a while. Both of those tools can use sphinx doc annotations to infer types in python 2 mode.\n\nI was wondering if that had been considered for mypy ? It would be tremendously useful for us for those programs that we can't migrate to python 3.\n\nNote that if this is considered a good idea but has not been done because nobody had time/desire to do it, I'm completely ready to get my hand dirty !\n\nRegards,\n","author":{"url":"https://github.com/raph-amiard","@type":"Person","name":"raph-amiard"},"datePublished":"2015-11-27T17:33:48Z","url":"https://github.com/python/mypy/issues/1015"}
| 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:59353f2d-8c71-f9cc-be04-4df6d64acef4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D4EA:3430F7:C1BB70:103DE35:6B004DE1 |
| html-safe-nonce | 60a5607ea94da98d3e9c3c33636f2256e4a5035f7f6ddc457a1b0f5e29e23750 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENEVBOjM0MzBGNzpDMUJCNzA6MTAzREUzNTo2QjAwNERFMSIsInZpc2l0b3JfaWQiOiI3OTI2NDE0MjE4NzQ2Njc4NzUzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c348a492beb8a385ff97af003d03c2b640cca2ee7bf3ba84d4d5a535e86b9f83 |
| hovercard-subject-tag | issue:119228953 |
| 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/1015/issue_layout |
| twitter:image | https://opengraph.githubassets.com/53d1cc5a052658857b7f9e8c8cccef7dc652a488da373a533c593c090fd4285d/python/mypy/issues/1015 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/53d1cc5a052658857b7f9e8c8cccef7dc652a488da373a533c593c090fd4285d/python/mypy/issues/1015 |
| og:image:alt | So I've been able to gather that mypy has a python 2 mode, triggered via --py2, and that the way to annotate types in this mode was via comments. I've been using pycharm on one side, and jedi for c... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | raph-amiard |
| hostname | github.com |
| expected-hostname | github.com |
| None | f9517bf360d46638a1e5e7daee7158842fe5ef43c9000afa0e127564a7c2f39b |
| 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 | b27c5dde30676028abd5c5fc53ce5c9b625f8281 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width