Title: Support annotations defined in docstrings · Issue #839 · python/mypy · GitHub
Open Graph Title: Support annotations defined in docstrings · Issue #839 · python/mypy
X Title: Support annotations defined in docstrings · Issue #839 · python/mypy
Description: In addition to Python 3 function annotations and type comments we should also support annotations in docstrings, following Google docstring conventions. Example: def f(x): """description... Args: x (int): describe... Returns: List[str]: ...
Open Graph Description: In addition to Python 3 function annotations and type comments we should also support annotations in docstrings, following Google docstring conventions. Example: def f(x): """description... Args: x...
X Description: In addition to Python 3 function annotations and type comments we should also support annotations in docstrings, following Google docstring conventions. Example: def f(x): """descrip...
Opengraph URL: https://github.com/python/mypy/issues/839
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support annotations defined in docstrings","articleBody":"In addition to Python 3 function annotations and type comments we should also support annotations in docstrings, following Google docstring conventions. Example:\n\n``` python\ndef f(x):\n \"\"\"description...\n\n Args:\n x (int): describe...\n\n Returns:\n List[str]: describe...\n \"\"\"\n ...\n\nf('x') # Error\n```\n\nThis would be primarily useful for code that needs to be Python 2 compatible. It should be possible to mix and match different kinds of annotations in a file. A type comment should take precedence over a docstring.\n\nThis should probably be opt-in (per file) so that we wouldn't give false positives for docstrings that don't fully conform to the expected syntax.\n","author":{"url":"https://github.com/JukkaL","@type":"Person","name":"JukkaL"},"datePublished":"2015-08-20T19:10:40Z","url":"https://github.com/python/mypy/issues/839"}
| 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:2e4d83e3-f60e-62ec-8558-ff44dee8b34f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 83B2:3F7946:293E148:385F268:6B005057 |
| html-safe-nonce | 72168f325c6662568f6f2e332bf4e61b018a1ee806ad1cdce489146ab25aedf4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4M0IyOjNGNzk0NjoyOTNFMTQ4OjM4NUYyNjg6NkIwMDUwNTciLCJ2aXNpdG9yX2lkIjoiNzg3MTc3MTYwODk5MjQ2OTA3OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1347fc1a1c742049414aef2d598fc2d5ca0cb50f2deb12c7dff8ba1f20036dad |
| hovercard-subject-tag | issue:102212156 |
| 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/839/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2ac24ec301d5265461a4ce7a8e1fe4bfa9c04399104787b6b3fe4f4bd3d08f7d/python/mypy/issues/839 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2ac24ec301d5265461a4ce7a8e1fe4bfa9c04399104787b6b3fe4f4bd3d08f7d/python/mypy/issues/839 |
| og:image:alt | In addition to Python 3 function annotations and type comments we should also support annotations in docstrings, following Google docstring conventions. Example: def f(x): """description... Args: x... |
| 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 | 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