Title: Parse error when passing keyword arguments after forwarding **args · Issue #2580 · python/mypy · GitHub
Open Graph Title: Parse error when passing keyword arguments after forwarding **args · Issue #2580 · python/mypy
X Title: Parse error when passing keyword arguments after forwarding **args · Issue #2580 · python/mypy
Description: def spam(x, y): pass def ok(**kwargs) -> None: spam(x=1, **kwargs) # OK def err(**kwargs) -> None: spam(**kwargs, x=1) # error: Parse error before "x" I wouldn't think the order matters. The Python interpreter does not have an issue with...
Open Graph Description: def spam(x, y): pass def ok(**kwargs) -> None: spam(x=1, **kwargs) # OK def err(**kwargs) -> None: spam(**kwargs, x=1) # error: Parse error before "x" I wouldn't think the order matters. The Python...
X Description: def spam(x, y): pass def ok(**kwargs) -> None: spam(x=1, **kwargs) # OK def err(**kwargs) -> None: spam(**kwargs, x=1) # error: Parse error before "x" I wouldn't think the order...
Opengraph URL: https://github.com/python/mypy/issues/2580
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Parse error when passing keyword arguments after forwarding **args","articleBody":"```\r\ndef spam(x, y): pass\r\n\r\ndef ok(**kwargs) -> None:\r\n spam(x=1, **kwargs) # OK\r\n\r\ndef err(**kwargs) -> None:\r\n spam(**kwargs, x=1) # error: Parse error before \"x\"\r\n```\r\n\r\nI wouldn't think the order matters. The Python interpreter does not have an issue with it.\r\n\r\nWith `--fast-parser` I get `error: \"spam\" gets multiple values for keyword argument \"x\"` instead. Should I open a separate issue for this?","author":{"url":"https://github.com/z33ky","@type":"Person","name":"z33ky"},"datePublished":"2016-12-15T13:44:54Z","url":"https://github.com/python/mypy/issues/2580"}
| 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:1fab3381-7e71-a62a-fed7-8950e3835574 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CF48:CF959:38F2FA0:4B8EBFC:6B00499B |
| html-safe-nonce | 73c44e4ba1c2a6cfa8949bbc09b95e5f2e531f3bba4a9b5075b1199fa020a7b8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRjQ4OkNGOTU5OjM4RjJGQTA6NEI4RUJGQzo2QjAwNDk5QiIsInZpc2l0b3JfaWQiOiI2MjY0NzIxMTQ0NjM3NTczNTMxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f6dc544cd6b156444649e9fe073309ea3118154bc65552ca9bd5eeddc53c5509 |
| hovercard-subject-tag | issue:195808887 |
| 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/2580/issue_layout |
| twitter:image | https://opengraph.githubassets.com/36cdcc77cbce8f2a55a539b9336cc498498d20d02fb654c7db17889f7edb8ec8/python/mypy/issues/2580 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/36cdcc77cbce8f2a55a539b9336cc498498d20d02fb654c7db17889f7edb8ec8/python/mypy/issues/2580 |
| og:image:alt | def spam(x, y): pass def ok(**kwargs) -> None: spam(x=1, **kwargs) # OK def err(**kwargs) -> None: spam(**kwargs, x=1) # error: Parse error before "x" I wouldn't think the order matters. The Python... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | z33ky |
| 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