Title: Support copy constructor for TypedDict · Issue #2738 · python/mypy · GitHub
Open Graph Title: Support copy constructor for TypedDict · Issue #2738 · python/mypy
X Title: Support copy constructor for TypedDict · Issue #2738 · python/mypy
Description: It should be possible to copy a TypedDict via a copy constructor like: point2 = Point(point1) Currently this is rejected by the type checker. It may also be desirable to support the following: point2d = Point2D(point3d) ...although I'd h...
Open Graph Description: It should be possible to copy a TypedDict via a copy constructor like: point2 = Point(point1) Currently this is rejected by the type checker. It may also be desirable to support the following: poin...
X Description: It should be possible to copy a TypedDict via a copy constructor like: point2 = Point(point1) Currently this is rejected by the type checker. It may also be desirable to support the following: poin...
Opengraph URL: https://github.com/python/mypy/issues/2738
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support copy constructor for TypedDict","articleBody":"It should be possible to copy a TypedDict via a copy constructor like:\r\n\r\n```\r\npoint2 = Point(point1)\r\n```\r\n\r\nCurrently this is rejected by the type checker.\r\n\r\n---\r\n\r\nIt *may* also be desirable to support the following:\r\n\r\n```\r\npoint2d = Point2D(point3d)\r\n```\r\n\r\n...although I'd have to think about whether this is actually typesafe and consistent.\r\n\r\n---\r\n\r\n**Suggested tags for this issue:** feature, topic-typed-dict","author":{"url":"https://github.com/davidfstr","@type":"Person","name":"davidfstr"},"datePublished":"2017-01-22T21:58:18Z","url":"https://github.com/python/mypy/issues/2738"}
| 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:6cf5870e-4c04-c123-70f7-40a563b7e002 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BD46:B7CF9:2E4C8F:3E4F17:6B0025B2 |
| html-safe-nonce | cd369291f4d4acb24dc5ca03449bd02c2106cb276909407020afc7cfac0862e6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDQ2OkI3Q0Y5OjJFNEM4RjozRTRGMTc6NkIwMDI1QjIiLCJ2aXNpdG9yX2lkIjoiODc3OTg2NzU5NTMzNjU5MDc3MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f5af105b8de6b9a325b63a9f55da729a5528584d27b902a7e66abfbc150fd685 |
| hovercard-subject-tag | issue:202413363 |
| 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/2738/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1970248c37a65eedc29b006e1b5cebf2895e2feeddec02774fdf01b43f582444/python/mypy/issues/2738 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1970248c37a65eedc29b006e1b5cebf2895e2feeddec02774fdf01b43f582444/python/mypy/issues/2738 |
| og:image:alt | It should be possible to copy a TypedDict via a copy constructor like: point2 = Point(point1) Currently this is rejected by the type checker. It may also be desirable to support the following: poin... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | davidfstr |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0 |
| 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 | 44c658b24abf00491fb7ae5f56d42c9f38cbeab2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width