Title: `types.UnionType` + `Literal` types are not tested together · Issue #103746 · python/cpython · GitHub
Open Graph Title: `types.UnionType` + `Literal` types are not tested together · Issue #103746 · python/cpython
X Title: `types.UnionType` + `Literal` types are not tested together · Issue #103746 · python/cpython
Description: Literal had some known problems when used with typing.Union and types.UnionType. Example: #103592 I've covered typing.Union, see #103706 But, I forgot about types.UnionType. So, I will add this new test as a part of this issue. Linked PR...
Open Graph Description: Literal had some known problems when used with typing.Union and types.UnionType. Example: #103592 I've covered typing.Union, see #103706 But, I forgot about types.UnionType. So, I will add this new...
X Description: Literal had some known problems when used with typing.Union and types.UnionType. Example: #103592 I've covered typing.Union, see #103706 But, I forgot about types.UnionType. So, I will add this...
Opengraph URL: https://github.com/python/cpython/issues/103746
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`types.UnionType` + `Literal` types are not tested together","articleBody":"`Literal` had some known problems when used with `typing.Union` and `types.UnionType`.\r\nExample: https://github.com/python/cpython/issues/103592\r\n\r\nI've covered `typing.Union`, see https://github.com/python/cpython/pull/103706\r\nBut, I forgot about `types.UnionType`.\r\n\r\nSo, I will add this new test as a part of this issue.\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-103747\n* gh-103772\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/sobolevn","@type":"Person","name":"sobolevn"},"datePublished":"2023-04-24T08:31:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/103746/cpython/issues/103746"}
| 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:759fa0d3-4098-15a7-1150-5ae5778dcdd9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A4EC:4CEB4:750677:9EB574:6969DA3B |
| html-safe-nonce | 5d85650a94cd2e777e0e5536a77c4296686c89c9ac2bd7dbf24fd065e203b9e4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNEVDOjRDRUI0Ojc1MDY3Nzo5RUI1NzQ6Njk2OURBM0IiLCJ2aXNpdG9yX2lkIjoiNzY5NjE1NzM2OTk5NjMxNDE5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9237d5bdeaaf15c94601faef3d3a1f933ba819e76d95e3295f8e9198e8af7da3 |
| hovercard-subject-tag | issue:1680725826 |
| 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/cpython/103746/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1923f9f701fd182e278ac7f2a242df3f70a717314ba89a3f61d5f8174287c581/python/cpython/issues/103746 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1923f9f701fd182e278ac7f2a242df3f70a717314ba89a3f61d5f8174287c581/python/cpython/issues/103746 |
| og:image:alt | Literal had some known problems when used with typing.Union and types.UnionType. Example: #103592 I've covered typing.Union, see #103706 But, I forgot about types.UnionType. So, I will add this new... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sobolevn |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| 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 | bdde15ad1b403e23b08bbd89b53fbe6bdf688cad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width