Title: Union[A,B] type hint yields [user class A, user class B] instead of [instance A, instance B] · Issue #459 · microsoft/python-language-server · GitHub
Open Graph Title: Union[A,B] type hint yields [user class A, user class B] instead of [instance A, instance B] · Issue #459 · microsoft/python-language-server
X Title: Union[A,B] type hint yields [user class A, user class B] instead of [instance A, instance B] · Issue #459 · microsoft/python-language-server
Description: Subj. from typing import Union class A: pass class B: pass def a() -> Union[A,B]: ... def b() -> A: ... Analysis of a's return type gives back a set of user class A and user class B, whereas it should be instance A and instance B. For co...
Open Graph Description: Subj. from typing import Union class A: pass class B: pass def a() -> Union[A,B]: ... def b() -> A: ... Analysis of a's return type gives back a set of user class A and user class B, whereas it sho...
X Description: Subj. from typing import Union class A: pass class B: pass def a() -> Union[A,B]: ... def b() -> A: ... Analysis of a's return type gives back a set of user class A and user class B, wher...
Opengraph URL: https://github.com/microsoft/python-language-server/issues/459
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Union[A,B] type hint yields [user class A, user class B] instead of [instance A, instance B]","articleBody":"Subj.\r\n\r\n```python\r\nfrom typing import Union\r\nclass A:\r\n pass\r\nclass B:\r\n pass\r\ndef a() -\u003e Union[A,B]: ...\r\ndef b() -\u003e A: ...\r\n```\r\nAnalysis of `a`'s return type gives back a set of user class A and user class B, whereas it should be instance A and instance B.\r\nFor comparison, analysis of `b`'s return type gives back a set of instance A.","author":{"url":"https://github.com/lostmsu","@type":"Person","name":"lostmsu"},"datePublished":"2018-12-05T19:11:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/459/python-language-server/issues/459"}
| 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:7e4a25d2-410e-75b7-aeef-7ccea3ec67e9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C878:309E0A:55CD97:75D006:6A5071A4 |
| html-safe-nonce | 8b2def88e917eda5f9558a388f630c52b98cf2f2ba363722b1eadf2fe3e356dc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODc4OjMwOUUwQTo1NUNEOTc6NzVEMDA2OjZBNTA3MUE0IiwidmlzaXRvcl9pZCI6IjgwODgzODk1MjE1MDUyODQ1MTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e7168edf63b5137bb1e1ac5573e861c011bd32c18a8bdc882687fd3d09d21f8a |
| hovercard-subject-tag | issue:387903018 |
| 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/microsoft/python-language-server/459/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b47fb731d5085809063f0633f5ef8f4e79414016df490ffb77c0656c33146805/microsoft/python-language-server/issues/459 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b47fb731d5085809063f0633f5ef8f4e79414016df490ffb77c0656c33146805/microsoft/python-language-server/issues/459 |
| og:image:alt | Subj. from typing import Union class A: pass class B: pass def a() -> Union[A,B]: ... def b() -> A: ... Analysis of a's return type gives back a set of user class A and user class B, whereas it sho... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lostmsu |
| hostname | github.com |
| expected-hostname | github.com |
| None | d6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/python-language-server git https://github.com/microsoft/python-language-server.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 145901977 |
| octolytics-dimension-repository_nwo | microsoft/python-language-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 145901977 |
| octolytics-dimension-repository_network_root_nwo | microsoft/python-language-server |
| 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 | 7ac0ad2f2c7e4b9056617355fd9e33e22b0c8df9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width