Title: Backport fixes to Literal from 3.11? · Issue #147 · python/typing_extensions · GitHub
Open Graph Title: Backport fixes to Literal from 3.11? · Issue #147 · python/typing_extensions
X Title: Backport fixes to Literal from 3.11? · Issue #147 · python/typing_extensions
Description: Hello, I see @AlexWaygood recently backported some fixes to Literal for Python versions prior to 3.9.1. Might you consider doing the same for some further fixes (last commit here) that only appeared in 3.11? Those issues -- basically pro...
Open Graph Description: Hello, I see @AlexWaygood recently backported some fixes to Literal for Python versions prior to 3.9.1. Might you consider doing the same for some further fixes (last commit here) that only appeare...
X Description: Hello, I see @AlexWaygood recently backported some fixes to Literal for Python versions prior to 3.9.1. Might you consider doing the same for some further fixes (last commit here) that only appeare...
Opengraph URL: https://github.com/python/typing_extensions/issues/147
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Backport fixes to Literal from 3.11?","articleBody":"Hello, I see @AlexWaygood recently backported some fixes to `Literal` for Python versions prior to 3.9.1. Might you consider doing the same for some further fixes (last commit [here](https://github.com/python/cpython/commit/634984d7dbdd91e0a51a793eed4d870e139ae1e0)) that only appeared in 3.11? Those issues -- basically problems with the type cache causing `Literal[True]` to return `Literal[1]` or vice versa when both are used -- break my code since I use annotations for runtime typechecking. If you could put the 3.11 implementation of `Literal` in `typing_extensions` then everybody could use it on older Python versions without needing their own monkeypatch to fix this problem. Thanks!\r\n\r\n(If you would like I can try putting together a PR for this, although I'm not sure I understand the differences between your version of `Literal` and the 3.11 one well enough to do it properly.)\r\n\r\n","author":{"url":"https://github.com/dfremont","@type":"Person","name":"dfremont"},"datePublished":"2023-04-19T13:42:28Z","url":"https://github.com/python/typing_extensions/issues/147"}
| 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:f5f5895b-4661-1917-fe1d-2f043312a360 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ED78:346DEB:4BAF0:673F0:6AFE30CE |
| html-safe-nonce | 6169cf33d1306b6c9024beafa55cbabc1f54509514edbf4474ef75a9315273f7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDc4OjM0NkRFQjo0QkFGMDo2NzNGMDo2QUZFMzBDRSIsInZpc2l0b3JfaWQiOiI1OTA1ODc0OTMwNTQ0NTU0MTkwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f193dd416066cdf11ffd6141d419a98ce0ffe98abe6204d9a834c5776fd9fcbd |
| hovercard-subject-tag | issue:1674929846 |
| 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_extensions/147/issue_layout |
| twitter:image | https://opengraph.githubassets.com/39c6564b8c0f997f380a83ea3ece9faaae319d348ac96b5ebcd01043a312dd7f/python/typing_extensions/issues/147 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/39c6564b8c0f997f380a83ea3ece9faaae319d348ac96b5ebcd01043a312dd7f/python/typing_extensions/issues/147 |
| og:image:alt | Hello, I see @AlexWaygood recently backported some fixes to Literal for Python versions prior to 3.9.1. Might you consider doing the same for some further fixes (last commit here) that only appeare... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dfremont |
| hostname | github.com |
| expected-hostname | github.com |
| None | d70e31220a67f6376c108d2416fa8e7df854c1065b1672ab7a88ab6dc3a809e2 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/typing_extensions git https://github.com/python/typing_extensions.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 494077289 |
| octolytics-dimension-repository_nwo | python/typing_extensions |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 494077289 |
| octolytics-dimension-repository_network_root_nwo | python/typing_extensions |
| 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 | ccb88d9c92abe69245b429398c8a57ae87070c7c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width