Title: (🐞) redundant union entries show in error messages · Issue #15972 · python/mypy · GitHub
Open Graph Title: (🐞) redundant union entries show in error messages · Issue #15972 · python/mypy
X Title: (🐞) redundant union entries show in error messages · Issue #15972 · python/mypy
Description: a: int = "a" or "b" # error: Incompatible types in assignment (expression has type "str | str", variable has type "int") [assignment] str | str
Open Graph Description: a: int = "a" or "b" # error: Incompatible types in assignment (expression has type "str | str", variable has type "int") [assignment] str | str
X Description: a: int = "a" or "b" # error: Incompatible types in assignment (expression has type "str | str", variable has type "int") [assignment] str | str
Opengraph URL: https://github.com/python/mypy/issues/15972
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"(🐞) redundant union entries show in error messages","articleBody":"```py\r\na: int = \"a\" or \"b\" # error: Incompatible types in assignment (expression has type \"str | str\", variable has type \"int\") [assignment]\r\n```\r\n\r\n`str | str`","author":{"url":"https://github.com/KotlinIsland","@type":"Person","name":"KotlinIsland"},"datePublished":"2023-08-27T12:05:05Z","url":"https://github.com/python/mypy/issues/15972"}
| 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:2b88175f-c00e-9715-6fd2-bdfe70dc1b63 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A1C0:2DCAE8:29643BE:38914C7:6B00506F |
| html-safe-nonce | 1d3e0152516d41641745ab4f38bf09082b9956e7bf60366b99675c2abab65229 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMUMwOjJEQ0FFODoyOTY0M0JFOjM4OTE0Qzc6NkIwMDUwNkYiLCJ2aXNpdG9yX2lkIjoiNjE0Njk0ODU4ODcxNTkyMTUxOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ff74ca7b4c4af06578469628ae38440fe128e13af175526719a53fc74c75f882 |
| hovercard-subject-tag | issue:1868471499 |
| 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/15972/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2f5d7e0146af4070839f23e660fc3ac71adda9d4b4c639e19b325796530f55cb/python/mypy/issues/15972 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2f5d7e0146af4070839f23e660fc3ac71adda9d4b4c639e19b325796530f55cb/python/mypy/issues/15972 |
| og:image:alt | a: int = "a" or "b" # error: Incompatible types in assignment (expression has type "str | str", variable has type "int") [assignment] str | str |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | KotlinIsland |
| hostname | github.com |
| expected-hostname | github.com |
| None | f420f4996e6b1ff1ccd6d7683f8134f4b5f0f8a50124c210dbfe7490e5644abb |
| 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 | 26e00df917aba0f128135dc073ea0c5e33a70d40 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width