Title: Supporting type from docstring · Issue #1669 · python/mypy · GitHub
Open Graph Title: Supporting type from docstring · Issue #1669 · python/mypy
X Title: Supporting type from docstring · Issue #1669 · python/mypy
Description: Hi, After we tests with the master of python/mypy repo, it seems that definition of types from the docstring are not supported. I try this (https://www.jetbrains.com/help/pycharm/2016.1/using-docstrings-to-specify-types.html): def gcd(a,...
Open Graph Description: Hi, After we tests with the master of python/mypy repo, it seems that definition of types from the docstring are not supported. I try this (https://www.jetbrains.com/help/pycharm/2016.1/using-docst...
X Description: Hi, After we tests with the master of python/mypy repo, it seems that definition of types from the docstring are not supported. I try this (https://www.jetbrains.com/help/pycharm/2016.1/using-docst...
Opengraph URL: https://github.com/python/mypy/issues/1669
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Supporting type from docstring ","articleBody":"Hi,\n\nAfter we tests with the master of python/mypy repo, it seems that definition of types from the docstring are not supported.\n\nI try this (https://www.jetbrains.com/help/pycharm/2016.1/using-docstrings-to-specify-types.html):\n\n```\ndef gcd(a, b):\n \"\"\"\n :type a: int\n :type b: int\n :rtype: int\n \"\"\"\n while b:\n a, b = b, a % b\n return a\n```\n\nAnd that:\n\n```\ndef gcd(a, b):\n \"\"\"\n @type a: int\n @type b: int\n @rtype: int\n \"\"\"\n while b:\n a, b = b, a % b\n return a\n```\n\nIs there any way to support it?\nThanks a lot\n","author":{"url":"https://github.com/vallsv","@type":"Person","name":"vallsv"},"datePublished":"2016-06-07T16:55:04Z","url":"https://github.com/python/mypy/issues/1669"}
| 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:c3f2fc55-b252-290e-ba6f-a897f26f2146 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BE72:3AE712:C4C364:107E0C2:6B00505E |
| html-safe-nonce | ef57ba1b53b8b53c63aee20e9aad53f28fdea58378a6a1f56246b75706f9fd41 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRTcyOjNBRTcxMjpDNEMzNjQ6MTA3RTBDMjo2QjAwNTA1RSIsInZpc2l0b3JfaWQiOiIzMjY4NDMwNTAxNTY3ODExNjc4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e94ceaf89c130bbd924c1469e06d2397f251c45154a5574dbefa41e10da842e4 |
| hovercard-subject-tag | issue:158972980 |
| 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/1669/issue_layout |
| twitter:image | https://opengraph.githubassets.com/319f13d92918eca7d64a986e8ce86344eb6ebb416c1c13a150491db2c54be1b1/python/mypy/issues/1669 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/319f13d92918eca7d64a986e8ce86344eb6ebb416c1c13a150491db2c54be1b1/python/mypy/issues/1669 |
| og:image:alt | Hi, After we tests with the master of python/mypy repo, it seems that definition of types from the docstring are not supported. I try this (https://www.jetbrains.com/help/pycharm/2016.1/using-docst... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vallsv |
| 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