Title: error: Unsupported operand types for + ("Tuple[Tuple[int]]" and "Tuple[Tuple[int, ...], ...]") · Issue #6337 · python/mypy · GitHub
Open Graph Title: error: Unsupported operand types for + ("Tuple[Tuple[int]]" and "Tuple[Tuple[int, ...], ...]") · Issue #6337 · python/mypy
X Title: error: Unsupported operand types for + ("Tuple[Tuple[int]]" and "Tuple[Tuple[int, ...], ...]") · Issue #6337 · python/mypy
Description: I don't know enough to know if this is a problem in typeshed or mypy - apologies if it's misfiled. Are you reporting a bug, or opening a feature request? Bug Please insert below the code you are checking with mypy from typing import Tupl...
Open Graph Description: I don't know enough to know if this is a problem in typeshed or mypy - apologies if it's misfiled. Are you reporting a bug, or opening a feature request? Bug Please insert below the code you are ch...
X Description: I don't know enough to know if this is a problem in typeshed or mypy - apologies if it's misfiled. Are you reporting a bug, or opening a feature request? Bug Please insert below the code yo...
Opengraph URL: https://github.com/python/mypy/issues/6337
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"error: Unsupported operand types for + (\"Tuple[Tuple[int]]\" and \"Tuple[Tuple[int, ...], ...]\")","articleBody":"I don't know enough to know if this is a problem in typeshed or mypy - apologies if it's misfiled.\r\n\r\n* Are you reporting a bug, or opening a feature request?\r\n\r\nBug\r\n\r\n* Please insert below the code you are checking with mypy\r\n\r\n```python\r\nfrom typing import Tuple\r\n\r\ndef add(x: Tuple[Tuple[int, ...], ...]) -> Tuple[Tuple[int, ...], ...]:\r\n return ((3,),) + x\r\n```\r\n\r\n* What is the actual behavior/output?\r\n\r\n```\r\nadd_tuple.py:4: error: Unsupported operand types for + (\"Tuple[Tuple[int]]\" and \"Tuple[Tuple[int, ...], ...]\")\r\n```\r\n\r\n* What is the behavior/output you expect?\r\n\r\nI expect this to pass, since this should always be a valid operation.\r\n\r\n* What are the versions of mypy and Python you are using?\r\n Do you see the same issue after installing mypy from Git master?\r\n\r\nmypy 0.660; Python 3.6.6. I tried git master but `pip install git+git://github.com/python/mypy.git` fails.\r\n\r\n* What are the mypy flags you are using? (For example --strict-optional)\r\n\r\nNone","author":{"url":"https://github.com/bmerry","@type":"Person","name":"bmerry"},"datePublished":"2019-02-05T14:44:08Z","url":"https://github.com/python/mypy/issues/6337"}
| 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:13aee366-c03d-245a-25a0-407bd078db53 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C796:3DAD59:2438F41:3012BA0:6B005507 |
| html-safe-nonce | 0d03ac75c73d9de2d37137f8709b54f972efe5a49d01484616dd0225b93dc9e8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzk2OjNEQUQ1OToyNDM4RjQxOjMwMTJCQTA6NkIwMDU1MDciLCJ2aXNpdG9yX2lkIjoiMjAyNzQ4NTE4NDEyMjcwNTE1OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2481164900058db64be271232d63da55d865f54c8446107e248aa6916e2627b0 |
| hovercard-subject-tag | issue:406815264 |
| 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/6337/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ada73ae3b318a0e69896c4f87a10a81d1b89aedbf6ffc6e78a0522a4daa285c5/python/mypy/issues/6337 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ada73ae3b318a0e69896c4f87a10a81d1b89aedbf6ffc6e78a0522a4daa285c5/python/mypy/issues/6337 |
| og:image:alt | I don't know enough to know if this is a problem in typeshed or mypy - apologies if it's misfiled. Are you reporting a bug, or opening a feature request? Bug Please insert below the code you are ch... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bmerry |
| 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