Title: Unsupported operand types for + (List[A] and List[B]) when B extends A · Issue #3933 · python/mypy · GitHub
Open Graph Title: Unsupported operand types for + (List[A] and List[B]) when B extends A · Issue #3933 · python/mypy
X Title: Unsupported operand types for + (List[A] and List[B]) when B extends A · Issue #3933 · python/mypy
Description: If I have: Class A: Class B(A): Then If I try to add lists of these two objects you get the following mypy error: error: Unsupported operand types for + (List[A] and List[B]) Any ideas for a work around on this one? Surely the inferred t...
Open Graph Description: If I have: Class A: Class B(A): Then If I try to add lists of these two objects you get the following mypy error: error: Unsupported operand types for + (List[A] and List[B]) Any ideas for a work a...
X Description: If I have: Class A: Class B(A): Then If I try to add lists of these two objects you get the following mypy error: error: Unsupported operand types for + (List[A] and List[B]) Any ideas for a work a...
Opengraph URL: https://github.com/python/mypy/issues/3933
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":" Unsupported operand types for + (List[A] and List[B]) when B extends A","articleBody":"If I have:\r\n```\r\nClass A:\r\n\r\nClass B(A):\r\n```\r\nThen If I try to add lists of these two objects you get the following mypy error:\r\n`error: Unsupported operand types for + (List[A] and List[B])`\r\n\r\nAny ideas for a work around on this one? Surely the inferred type should be `List[Union[A, B]`\r\n","author":{"url":"https://github.com/henryJack","@type":"Person","name":"henryJack"},"datePublished":"2017-09-07T12:23:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/3933/mypy/issues/3933"}
| 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:f7cb205f-a007-7bbd-4e16-a740f92e490a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 89BA:34AB45:4E1D94:71EA40:6A61EBC3 |
| html-safe-nonce | 666b0478c62a7fb89c9717a575de4d42e536220b49e9d551477f6a414e2d1015 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OUJBOjM0QUI0NTo0RTFEOTQ6NzFFQTQwOjZBNjFFQkMzIiwidmlzaXRvcl9pZCI6IjI2MzA4NDY2NDgwMzA0NTY3NzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 170e977d6bccbd5710573ae30f4a8ac6714b4b8d0c7b516578c46ecd8440a0b7 |
| hovercard-subject-tag | issue:255918728 |
| 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/mypy/3933/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2a4b113e16ce65e12e7703f6e870201686524c9b4f1287207f56c9611b4d24b7/python/mypy/issues/3933 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2a4b113e16ce65e12e7703f6e870201686524c9b4f1287207f56c9611b4d24b7/python/mypy/issues/3933 |
| og:image:alt | If I have: Class A: Class B(A): Then If I try to add lists of these two objects you get the following mypy error: error: Unsupported operand types for + (List[A] and List[B]) Any ideas for a work a... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | henryJack |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5dd1217fff37e297563b9d318ee02bf6378c8957c6195b77786bb8896fc9c95d |
| turbo-cache-control | no-preview |
| go-import | github.com/python/mypy git https://github.com/python/mypy.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 7053637 |
| octolytics-dimension-repository_nwo | python/mypy |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 7053637 |
| octolytics-dimension-repository_network_root_nwo | python/mypy |
| 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 | 554667f6dda2a53c83687de64fabc457970f0f04 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width