Title: Type checker rejects call with both *args and a keyword arg · Issue #153 · python/mypy · GitHub
Open Graph Title: Type checker rejects call with both *args and a keyword arg · Issue #153 · python/mypy
X Title: Type checker rejects call with both *args and a keyword arg · Issue #153 · python/mypy
Description: The following code is not accepted by the type checker, even though it's arguably valid: def f(a, x=1): pass f(*[1], x=2) # Error: multiple values for keyword argument "x" The type checker should probably not complain about multiple argu...
Open Graph Description: The following code is not accepted by the type checker, even though it's arguably valid: def f(a, x=1): pass f(*[1], x=2) # Error: multiple values for keyword argument "x" The type checker should p...
X Description: The following code is not accepted by the type checker, even though it's arguably valid: def f(a, x=1): pass f(*[1], x=2) # Error: multiple values for keyword argument "x" The type ch...
Opengraph URL: https://github.com/python/mypy/issues/153
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Type checker rejects call with both *args and a keyword arg","articleBody":"The following code is not accepted by the type checker, even though it's arguably valid:\n\n```\ndef f(a, x=1): pass\nf(*[1], x=2) # Error: multiple values for keyword argument \"x\"\n```\n\nThe type checker should probably not complain about multiple argument values if one of the values is from a *arg.\n\nThe limitation can be worked around by replacing keyword args with dict args (**args).\n","author":{"url":"https://github.com/JukkaL","@type":"Person","name":"JukkaL"},"datePublished":"2013-02-20T14:58:34Z","url":"https://github.com/python/mypy/issues/153"}
| 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:c903d425-3a5f-a4b0-33a1-0987b71239ff |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 920C:30C16C:30F6C0:41DF21:6B009FA7 |
| html-safe-nonce | 4a679fcb64b339fc45e7eefdcfd0c34e2d2ef657004b1f75d763ac94e67c5877 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MjBDOjMwQzE2QzozMEY2QzA6NDFERjIxOjZCMDA5RkE3IiwidmlzaXRvcl9pZCI6IjE4ODg3OTkzMTE0NTAzODIyNDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 75a8fad167b98c9dc41225f19b969a42c1176956ecbee4f41740a53a95710366 |
| hovercard-subject-tag | issue:11200120 |
| 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/153/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e4c70c4e05818b24fea2a0d1e7649dc271a71dbc52f7acce846abfe6537e64c3/python/mypy/issues/153 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e4c70c4e05818b24fea2a0d1e7649dc271a71dbc52f7acce846abfe6537e64c3/python/mypy/issues/153 |
| og:image:alt | The following code is not accepted by the type checker, even though it's arguably valid: def f(a, x=1): pass f(*[1], x=2) # Error: multiple values for keyword argument "x" The type checker should p... |
| 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 | 52c95ce7e48016ae14399656b4ee812462b6f1fa28c5008c8394da64794c00b8 |
| 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 | 1c9ddec8215f9a94e295c8310c3579b9c54ba31a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width