Title: Could string.templatelib.Interpolation be generic, even if Template isn't? · Issue #15769 · python/typeshed · GitHub
Open Graph Title: Could string.templatelib.Interpolation be generic, even if Template isn't? · Issue #15769 · python/typeshed
X Title: Could string.templatelib.Interpolation be generic, even if Template isn't? · Issue #15769 · python/typeshed
Description: Spin-off of #14878 and python/cpython#133970. The end goal for t-strings is for Template and Interpolation to both be generic. It seems that for now, there isn't real consensus on what the type parameter for Template should be (or even w...
Open Graph Description: Spin-off of #14878 and python/cpython#133970. The end goal for t-strings is for Template and Interpolation to both be generic. It seems that for now, there isn't real consensus on what the type par...
X Description: Spin-off of #14878 and python/cpython#133970. The end goal for t-strings is for Template and Interpolation to both be generic. It seems that for now, there isn't real consensus on what the type...
Opengraph URL: https://github.com/python/typeshed/issues/15769
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Could string.templatelib.Interpolation be generic, even if Template isn't?","articleBody":"Spin-off of #14878 and python/cpython#133970.\n\nThe end goal for t-strings is for `Template` and `Interpolation` to both be generic. It seems that for now, there isn't real consensus on what the type parameter for `Template` should be (or even whether we should have one before we get `TypeVarTuple` transformations). However, the parameter for `Interpolation` seems pretty unambiguous; it's just the type of the value. Given that, would it be okay to make `Interpolation` generic for now, saving `Template` support for whenever we make a final decision?\n\nNote that there's still a use case for a generic `Interpolation` without a generic `Template` since you can manually construct the former using `Interpolation.__new__`.","author":{"url":"https://github.com/Andrew5057","@type":"Person","name":"Andrew5057"},"datePublished":"2026-05-11T16:02:04Z","url":"https://github.com/python/typeshed/issues/15769"}
| 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:b68bfe57-c7bc-ae07-3d97-4629faad184f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DDCC:5314B:35041F3:465D0FB:6B004612 |
| html-safe-nonce | 1b3fc567dccfc66363e4bd8fcf9e7a6e3ff9f30f86d3141fc407e17631956211 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERENDOjUzMTRCOjM1MDQxRjM6NDY1RDBGQjo2QjAwNDYxMiIsInZpc2l0b3JfaWQiOiIyMjQ3NTg1MTU1NDgyOTI4NjU4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 463b41b8e88b55396eb973859fe16d126618844b268be2f854897fc41c93ab4f |
| hovercard-subject-tag | issue:4422311631 |
| 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/typeshed/15769/issue_layout |
| twitter:image | https://opengraph.githubassets.com/38a7547ea766391ea4b2797dfe22dbf1a1a92b2b0ab8517ed7545f7006aabf9a/python/typeshed/issues/15769 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/38a7547ea766391ea4b2797dfe22dbf1a1a92b2b0ab8517ed7545f7006aabf9a/python/typeshed/issues/15769 |
| og:image:alt | Spin-off of #14878 and python/cpython#133970. The end goal for t-strings is for Template and Interpolation to both be generic. It seems that for now, there isn't real consensus on what the type par... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Andrew5057 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/typeshed git https://github.com/python/typeshed.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 31696383 |
| octolytics-dimension-repository_nwo | python/typeshed |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 31696383 |
| octolytics-dimension-repository_network_root_nwo | python/typeshed |
| 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 | f3f3a43ca095cdea3abbb394112e971f9fdb94fa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width