Title: Decide meaning of alias with one generic and one concrete parameter · Issue #115 · python/typing · GitHub
Open Graph Title: Decide meaning of alias with one generic and one concrete parameter · Issue #115 · python/typing
X Title: Decide meaning of alias with one generic and one concrete parameter · Issue #115 · python/typing
Description: See python/mypy#606. We allow the following, and they are well-defined: from typing import TypeVar, Dict T = TypeVar('T') U = TypeVar('U') X = Dict[int, str] Y = Dict[T, U] But what does this mean? Z = Dict[T, int] In typing.py this curr...
Open Graph Description: See python/mypy#606. We allow the following, and they are well-defined: from typing import TypeVar, Dict T = TypeVar('T') U = TypeVar('U') X = Dict[int, str] Y = Dict[T, U] But what does this mean?...
X Description: See python/mypy#606. We allow the following, and they are well-defined: from typing import TypeVar, Dict T = TypeVar('T') U = TypeVar('U') X = Dict[int, str] Y = Dict[T, U] But what...
Mail addresses
notifications@github.com
notifications@github.com
notifications@github.com
Opengraph URL: https://github.com/python/typing/issues/115
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Decide meaning of alias with one generic and one concrete parameter","articleBody":"See https://github.com/JukkaL/mypy/issues/606. We allow the following, and they are well-defined:\n\n```\nfrom typing import TypeVar, Dict\nT = TypeVar('T')\nU = TypeVar('U')\nX = Dict[int, str]\nY = Dict[T, U]\n```\n\nBut what does this mean?\n\n```\nZ = Dict[T, int]\n```\n\nIn typing.py this currently defines Z as something with two parameters, the second constrained to int or subclasses thereof. But another reasonable interpretation would be that Z has _one_ parameter, corresponding to T only.\n\nThe second interpretation is actually more reasonable. (As long as we require that all parameters are either concrete or a simple type variable, not another type expression or alias containing a type variable.)\n\nIf we agree, we should define this in the PEP and implement it in typing.py.\n","author":{"url":"https://github.com/gvanrossum","@type":"Person","name":"gvanrossum"},"datePublished":"2015-05-20T01:14:19Z","url":"https://github.com/python/typing/issues/115"}
| 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:6d31e5ff-f5d7-48d3-17bf-8440fc9c08cb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C8F0:278022:D3D245:1144221:6AFFF6F0 |
| html-safe-nonce | 097225186a16719e12c835624c1a2e86c9bf85168068150315fd7facf9866082 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOEYwOjI3ODAyMjpEM0QyNDU6MTE0NDIyMTo2QUZGRjZGMCIsInZpc2l0b3JfaWQiOiI3MjA2OTE3Nzg4MzMyNDU1NjY0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 82f2e4aa1566a97dd7c02132da5da2f72a785aa744d2a5454358cf7e49fdd201 |
| hovercard-subject-tag | issue:78317425 |
| 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/115/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5d2db3d552c4ef88bdedd847deda2cfee9ac0c36f60e91c2d6a9cc4e229b369c/python/typing/issues/115 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5d2db3d552c4ef88bdedd847deda2cfee9ac0c36f60e91c2d6a9cc4e229b369c/python/typing/issues/115 |
| og:image:alt | See python/mypy#606. We allow the following, and they are well-defined: from typing import TypeVar, Dict T = TypeVar('T') U = TypeVar('U') X = Dict[int, str] Y = Dict[T, U] But what does this mean?... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gvanrossum |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0a0d8686a27478df474dd7415776a7a080cde8838b3cd92ea7601187572e5729 |
| 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 | 16a11879678aaf97e2a42c33ee70830aa084fa37 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width