Title: `x = tuple() # type: Tuple[()]` Incompatible types in assignment · Issue #6283 · python/mypy · GitHub
Open Graph Title: `x = tuple() # type: Tuple[()]` Incompatible types in assignment · Issue #6283 · python/mypy
X Title: `x = tuple() # type: Tuple[()]` Incompatible types in assignment · Issue #6283 · python/mypy
Description: I understand this is a silly example, but figured I'd report it anyway. I can't find a way (other than # type: ignore) to silence mypy for this line: x = tuple() # type: Tuple[()] I found #4211 (which is how I got to Tuple[()] mypy 0.660...
Open Graph Description: I understand this is a silly example, but figured I'd report it anyway. I can't find a way (other than # type: ignore) to silence mypy for this line: x = tuple() # type: Tuple[()] I found #4211 (wh...
X Description: I understand this is a silly example, but figured I'd report it anyway. I can't find a way (other than # type: ignore) to silence mypy for this line: x = tuple() # type: Tuple[()] I found #...
Opengraph URL: https://github.com/python/mypy/issues/6283
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`x = tuple() # type: Tuple[()]` Incompatible types in assignment","articleBody":"I understand this is a silly example, but figured I'd report it anyway.\r\n\r\nI can't find a way (other than `# type: ignore`) to silence mypy for this line:\r\n\r\n```python\r\nx = tuple() # type: Tuple[()]\r\n```\r\n\r\nI found #4211 (which is how I got to `Tuple[()]`\r\n\r\nmypy 0.660 errors with:\r\n```\r\ntesting/resources/builtin_constructors.py:13: error: Incompatible types in assignment (expression has type \"Tuple[\u003cnothing\u003e, ...]\", variable has type \"Tuple[]\")\r\n```","author":{"url":"https://github.com/asottile","@type":"Person","name":"asottile"},"datePublished":"2019-02-01T02:38:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/6283/mypy/issues/6283"}
| 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:0cdd9588-e587-7236-651d-14ea2587ffe1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AD5A:21ABD1:37C7040:4D18CCC:6A60E06F |
| html-safe-nonce | 42ae81ae308b5bccfa062fa17ad5103c2aba664f3de6ec22051208b9f7c1ce02 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDVBOjIxQUJEMTozN0M3MDQwOjREMThDQ0M6NkE2MEUwNkYiLCJ2aXNpdG9yX2lkIjoiODMxMjQyNjM0MTQ5NDQ4MTAwNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 48d4f13c85fecdcf8575cd71076422f3be73153b9815ef04e3bfa01c2f5145b0 |
| hovercard-subject-tag | issue:405527352 |
| 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/6283/issue_layout |
| twitter:image | https://opengraph.githubassets.com/be8d5480fd816503dfbc3bd749b62e8594737d011a58c6a6d4251fcc4a83c15b/python/mypy/issues/6283 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/be8d5480fd816503dfbc3bd749b62e8594737d011a58c6a6d4251fcc4a83c15b/python/mypy/issues/6283 |
| og:image:alt | I understand this is a silly example, but figured I'd report it anyway. I can't find a way (other than # type: ignore) to silence mypy for this line: x = tuple() # type: Tuple[()] I found #4211 (wh... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | asottile |
| hostname | github.com |
| expected-hostname | github.com |
| None | 8302bdfafed4cf34ac9c1d3593108fafa53bc3f86b893907e38fa6bdd74361ac |
| 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 | c3c2ff0c76b34772c83c9498a08cefee28f53da0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width