Title: Need to spell out syntax for `a, b, *c = ... # type: ...` · Issue #363 · python/typing · GitHub
Open Graph Title: Need to spell out syntax for `a, b, *c = ... # type: ...` · Issue #363 · python/typing
X Title: Need to spell out syntax for `a, b, *c = ... # type: ...` · Issue #363 · python/typing
Description: In analogy to the syntax for *args in function definitions, mypy's old parser requires: a, b, *c = 0, 0 # type: int, int, *List[int] but the new parser omits the star from the annotation: a, b, *c = 0, 0 # type: int, int, List[int] The P...
Open Graph Description: In analogy to the syntax for *args in function definitions, mypy's old parser requires: a, b, *c = 0, 0 # type: int, int, *List[int] but the new parser omits the star from the annotation: a, b, *c ...
X Description: In analogy to the syntax for *args in function definitions, mypy's old parser requires: a, b, *c = 0, 0 # type: int, int, *List[int] but the new parser omits the star from the annotation: a, b,...
Opengraph URL: https://github.com/python/typing/issues/363
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Need to spell out syntax for `a, b, *c = ... # type: ...`","articleBody":"In analogy to the syntax for `*args` in function definitions, mypy's old parser requires:\r\n```python\r\na, b, *c = 0, 0 # type: int, int, *List[int]\r\n```\r\nbut the new parser omits the star from the annotation:\r\n```python\r\na, b, *c = 0, 0 # type: int, int, List[int]\r\n```\r\nThe PEP doesn't say which it should be. I propose the latter (since the analogy with function definitions is flawed anyway -- it would have to be `*int`).\r\n\r\nSee also https://github.com/python/mypy/pull/2722/files","author":{"url":"https://github.com/gvanrossum","@type":"Person","name":"gvanrossum"},"datePublished":"2017-01-23T20:12:01Z","url":"https://github.com/python/typing/issues/363"}
| 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:73b64184-e2a0-f135-7e34-786c4baf7508 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B05C:197995:221C2E0:2E4A66F:6B0025D6 |
| html-safe-nonce | 1aa7319da846e8653ca6fc2daef2ce17caa978cba21c083bc5fb5630d5e52441 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDVDOjE5Nzk5NToyMjFDMkUwOjJFNEE2NkY6NkIwMDI1RDYiLCJ2aXNpdG9yX2lkIjoiNzkwNzk1MTczNDg4OTEyOTQzMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b93bc75e6cf1128a3fdfd3feb4a0d3357088ed4d76fbeafb0f497db4daa04a37 |
| hovercard-subject-tag | issue:202638169 |
| 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/typing/363/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7a319b4b79f6b7e76108c5e5e052286ecb4ded93dacaee1e86a40504f4b880a6/python/typing/issues/363 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7a319b4b79f6b7e76108c5e5e052286ecb4ded93dacaee1e86a40504f4b880a6/python/typing/issues/363 |
| og:image:alt | In analogy to the syntax for *args in function definitions, mypy's old parser requires: a, b, *c = 0, 0 # type: int, int, *List[int] but the new parser omits the star from the annotation: a, b, *c ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gvanrossum |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/typing git https://github.com/python/typing.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 24604008 |
| octolytics-dimension-repository_nwo | python/typing |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24604008 |
| octolytics-dimension-repository_network_root_nwo | python/typing |
| 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