Title: **kwargs checked against wrong type with defaults or *args · Issue #1969 · python/mypy · GitHub
Open Graph Title: **kwargs checked against wrong type with defaults or *args · Issue #1969 · python/mypy
X Title: **kwargs checked against wrong type with defaults or *args · Issue #1969 · python/mypy
Description: def a(*args: str, **kw: int) -> None: b(**kw) b('', **kw) c(**kw) c('', **kw) def b(args: str='', **kw: int) -> None: pass def c(*args: str, **kw: int) -> None: pass results, with 0.4.3: /tmp/minimize.py: note: In function "a": /tmp/mini...
Open Graph Description: def a(*args: str, **kw: int) -> None: b(**kw) b('', **kw) c(**kw) c('', **kw) def b(args: str='', **kw: int) -> None: pass def c(*args: str, **kw: int) -> None: pass results, with 0.4.3: /tmp/minim...
X Description: def a(*args: str, **kw: int) -> None: b(**kw) b('', **kw) c(**kw) c('', **kw) def b(args: str='', **kw: int) -> None: pass def c(*args: str, **kw: int) -> None: pas...
Opengraph URL: https://github.com/python/mypy/issues/1969
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"**kwargs checked against wrong type with defaults or *args","articleBody":"```\ndef a(*args: str, **kw: int) -> None:\n b(**kw)\n b('', **kw)\n c(**kw)\n c('', **kw)\n\ndef b(args: str='', **kw: int) -> None:\n pass\n\ndef c(*args: str, **kw: int) -> None:\n pass\n```\n\nresults, with 0.4.3:\n\n```\n/tmp/minimize.py: note: In function \"a\":\n/tmp/minimize.py:2: error: Argument 1 to \"b\" has incompatible type **Dict[str, int]; expected \"str\"\n/tmp/minimize.py:4: error: Argument 1 to \"c\" has incompatible type **Dict[str, int]; expected \"str\"\n```\n","author":{"url":"https://github.com/kcr","@type":"Person","name":"kcr"},"datePublished":"2016-07-31T19:44:44Z","url":"https://github.com/python/mypy/issues/1969"}
| 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:61163069-fcd2-f702-ec92-cb029fac65f2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8658:DCDA8:3138E54:40FBB74:6B002C1C |
| html-safe-nonce | 37da62f293bb76c4e219ee4b8dc2571178c06b3316ab1c8c77b44c9711335253 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NjU4OkRDREE4OjMxMzhFNTQ6NDBGQkI3NDo2QjAwMkMxQyIsInZpc2l0b3JfaWQiOiI0OTU4NDMwMjk2Mzc1NTY5NDM2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d68edc91d34f52ccd3acb1134c9826f4573802ca933aa4fcb37bb2584a20d96b |
| hovercard-subject-tag | issue:168534543 |
| 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/1969/issue_layout |
| twitter:image | https://opengraph.githubassets.com/07612de2deb594352140fd93f4e49312f7e99eda5382e8e748940de44d990112/python/mypy/issues/1969 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/07612de2deb594352140fd93f4e49312f7e99eda5382e8e748940de44d990112/python/mypy/issues/1969 |
| og:image:alt | def a(*args: str, **kw: int) -> None: b(**kw) b('', **kw) c(**kw) c('', **kw) def b(args: str='', **kw: int) -> None: pass def c(*args: str, **kw: int) -> None: pass results, with 0.4.3: /tmp/minim... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kcr |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0 |
| 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 | f3f3a43ca095cdea3abbb394112e971f9fdb94fa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width