Title: MutableMapping.setdefault() is buggy, needs overload for one-argument case · Issue #1034 · python/typing · GitHub
Open Graph Title: MutableMapping.setdefault() is buggy, needs overload for one-argument case · Issue #1034 · python/typing
X Title: MutableMapping.setdefault() is buggy, needs overload for one-argument case · Issue #1034 · python/typing
Description: I think https://github.com/python/typeshed/blob/61d876e4ea62c42599dbaa59471576d6eda0e04d/stdlib/typing.pyi#L480 is buggy. It needs an overload for the case where the second argument is not specified. Originally posted by @JelleZijlstra i...
Open Graph Description: I think https://github.com/python/typeshed/blob/61d876e4ea62c42599dbaa59471576d6eda0e04d/stdlib/typing.pyi#L480 is buggy. It needs an overload for the case where the second argument is not specifie...
X Description: I think https://github.com/python/typeshed/blob/61d876e4ea62c42599dbaa59471576d6eda0e04d/stdlib/typing.pyi#L480 is buggy. It needs an overload for the case where the second argument is not specifie...
Opengraph URL: https://github.com/python/typing/issues/1034
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"MutableMapping.setdefault() is buggy, needs overload for one-argument case","articleBody":"> I think https://github.com/python/typeshed/blob/61d876e4ea62c42599dbaa59471576d6eda0e04d/stdlib/typing.pyi#L480 is buggy. It needs an overload for the case where the second argument is not specified.\r\n\r\n_Originally posted by @JelleZijlstra in https://github.com/python/typing/discussions/1033#discussioncomment-1986359_\r\n\r\n(Edit by Akuli: link to a specific commit instead of master)","author":{"url":"https://github.com/Akuli","@type":"Person","name":"Akuli"},"datePublished":"2022-01-17T23:05:41Z","url":"https://github.com/python/typing/issues/1034"}
| 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:e018e286-a64d-8542-358e-26c5e996ae5b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B27E:36997C:27261E:368F70:6B0087F3 |
| html-safe-nonce | 8aa2bf97bdb4b6a6e5776cd91a2cab9d1d7e4269a29362ea1b25c800332c73b9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjdFOjM2OTk3QzoyNzI2MUU6MzY4RjcwOjZCMDA4N0YzIiwidmlzaXRvcl9pZCI6IjEyNDQyOTIxNDY3MzU5MDg4NTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 178c3ba8acef72a58ecd896e4a91a2f0a4e48763e3f68a940f5c3a2bedd15a02 |
| hovercard-subject-tag | issue:1106325869 |
| 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/1034/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8c09a1d39d7e1c8c9e7418a20aa6deb5ebc9d534e8a3b66f8f6a998421f1abf0/python/typing/issues/1034 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8c09a1d39d7e1c8c9e7418a20aa6deb5ebc9d534e8a3b66f8f6a998421f1abf0/python/typing/issues/1034 |
| og:image:alt | I think https://github.com/python/typeshed/blob/61d876e4ea62c42599dbaa59471576d6eda0e04d/stdlib/typing.pyi#L480 is buggy. It needs an overload for the case where the second argument is not specifie... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Akuli |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4d3d8e50f02c1d7bf86d5acfa1d3bfe9366abd6528a6b429eb07a168429d2b61 |
| 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 | db758f8e02b8257935fb03edf81a3e76eb3abd11 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width