Title: General type aliases · Issue #298 · python/mypy · GitHub
Open Graph Title: General type aliases · Issue #298 · python/mypy
X Title: General type aliases · Issue #298 · python/mypy
Description: It should be possible to define type aliases for all types, not just non-generic instance types. For example, these should be valid: X = List[int] def () -> X: ... a = X() Y = Tuple[int, str] F = Function[[int, str], bool]
Open Graph Description: It should be possible to define type aliases for all types, not just non-generic instance types. For example, these should be valid: X = List[int] def () -> X: ... a = X() Y = Tuple[int, str] F = F...
X Description: It should be possible to define type aliases for all types, not just non-generic instance types. For example, these should be valid: X = List[int] def () -> X: ... a = X() Y = Tuple[int, str] F ...
Opengraph URL: https://github.com/python/mypy/issues/298
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"General type aliases","articleBody":"It should be possible to define type aliases for all types, not just non-generic instance types. For example, these should be valid:\n\n```\nX = List[int]\ndef () -> X: ...\na = X()\nY = Tuple[int, str]\nF = Function[[int, str], bool]\n```\n","author":{"url":"https://github.com/JukkaL","@type":"Person","name":"JukkaL"},"datePublished":"2014-07-17T00:41:11Z","url":"https://github.com/python/mypy/issues/298"}
| 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:fdec314c-2f1d-a0b1-2acf-8d55c2884a02 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C146:2E5D6B:50B74A:6E0D26:6B007266 |
| html-safe-nonce | c6c7b671a22d220feb50941b1800b13ff12fdd06de04bda23b5c57223a0b2745 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTQ2OjJFNUQ2Qjo1MEI3NEE6NkUwRDI2OjZCMDA3MjY2IiwidmlzaXRvcl9pZCI6IjgyNjI0OTg0NTQ3OTA1MDA5NjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d75c3d418a385e5185f634a40921287995e8a81127e93873d7618d5af06b0644 |
| hovercard-subject-tag | issue:38038900 |
| 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/298/issue_layout |
| twitter:image | https://opengraph.githubassets.com/295a9a10d95abb6d52f9ccefe63aca7c09b98e2d25948d529c88ee8a2c5c79ea/python/mypy/issues/298 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/295a9a10d95abb6d52f9ccefe63aca7c09b98e2d25948d529c88ee8a2c5c79ea/python/mypy/issues/298 |
| og:image:alt | It should be possible to define type aliases for all types, not just non-generic instance types. For example, these should be valid: X = List[int] def () -> X: ... a = X() Y = Tuple[int, str] F = F... |
| 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 | 75c2b65dd205f26961d0c29afed1a8d0bb7cca9f05780571dfd1ef93eb539d16 |
| 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 | 84e563eb4b55f8fa102f325f117533cee9e3df4a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width