Title: TypedDict syntax variant with dict(...) argument · Issue #2739 · python/mypy · GitHub
Open Graph Title: TypedDict syntax variant with dict(...) argument · Issue #2739 · python/mypy
X Title: TypedDict syntax variant with dict(...) argument · Issue #2739 · python/mypy
Description: Support defining typed dicts like this: Point = TypedDict('Point', dict(x=int, y=int)) The above syntax is similar to the syntax in #2492: Point = TypedDict('Point', x=int, y=int) Supporting this syntax for defining a TypedDict type is c...
Open Graph Description: Support defining typed dicts like this: Point = TypedDict('Point', dict(x=int, y=int)) The above syntax is similar to the syntax in #2492: Point = TypedDict('Point', x=int, y=int) Supporting this s...
X Description: Support defining typed dicts like this: Point = TypedDict('Point', dict(x=int, y=int)) The above syntax is similar to the syntax in #2492: Point = TypedDict('Point', x=int, y=int) S...
Opengraph URL: https://github.com/python/mypy/issues/2739
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"TypedDict syntax variant with dict(...) argument","articleBody":"Support defining typed dicts like this:\r\n\r\n```\r\nPoint = TypedDict('Point', dict(x=int, y=int))\r\n```\r\n\r\n---\r\n\r\nThe above syntax is similar to the syntax in #2492:\r\n\r\n```\r\nPoint = TypedDict('Point', x=int, y=int)\r\n```\r\n\r\nSupporting this syntax for defining a TypedDict type is consistent with our existing support for a similar syntax for instantiating a TypedDict:\r\n\r\n```\r\npoint = Point(dict(x=42, y=1337))\r\n```","author":{"url":"https://github.com/davidfstr","@type":"Person","name":"davidfstr"},"datePublished":"2017-01-22T22:07:30Z","url":"https://github.com/python/mypy/issues/2739"}
| 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:3d90a3b3-e737-5d44-8391-6ae80663bc2d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C5AE:F5AA9:21F170C:2E2B106:6B0025B2 |
| html-safe-nonce | 38d77515037a192ba9e08a544dbfe0304a28de1c3b454f4e2759783f236e84d5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNUFFOkY1QUE5OjIxRjE3MEM6MkUyQjEwNjo2QjAwMjVCMiIsInZpc2l0b3JfaWQiOiI3MTExNjUwNjI0ODE4NjUyNTk0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | dcb28131a25594698f7ead47b3d049a6fb2400bd4ef66ea6f40b8e5d79809179 |
| hovercard-subject-tag | issue:202413945 |
| 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/2739/issue_layout |
| twitter:image | https://opengraph.githubassets.com/12d60e966443a79b089f1ccefae3bdd59141764af978d827c0f2bb5deb5a8c59/python/mypy/issues/2739 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/12d60e966443a79b089f1ccefae3bdd59141764af978d827c0f2bb5deb5a8c59/python/mypy/issues/2739 |
| og:image:alt | Support defining typed dicts like this: Point = TypedDict('Point', dict(x=int, y=int)) The above syntax is similar to the syntax in #2492: Point = TypedDict('Point', x=int, y=int) Supporting this s... |
| 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