Title: Regression: isinstance(x, AliasOfTuple) is not supported · Issue #3068 · python/mypy · GitHub
Open Graph Title: Regression: isinstance(x, AliasOfTuple) is not supported · Issue #3068 · python/mypy
X Title: Regression: isinstance(x, AliasOfTuple) is not supported · Issue #3068 · python/mypy
Description: Example: T = (int, int) x : object if isinstance(x, T): reveal_type(x) # Revealed type is 'builtins.object' x + x # E: Unsupported left operand type for + ("object") This was introduced in #2995
Open Graph Description: Example: T = (int, int) x : object if isinstance(x, T): reveal_type(x) # Revealed type is 'builtins.object' x + x # E: Unsupported left operand type for + ("object") This was introduced in #2995
X Description: Example: T = (int, int) x : object if isinstance(x, T): reveal_type(x) # Revealed type is 'builtins.object' x + x # E: Unsupported left operand type for + ("object") This was intr...
Opengraph URL: https://github.com/python/mypy/issues/3068
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Regression: isinstance(x, AliasOfTuple) is not supported","articleBody":"Example:\r\n```Python\r\nT = (int, int)\r\nx : object\r\nif isinstance(x, T):\r\n reveal_type(x) # Revealed type is 'builtins.object'\r\n x + x # E: Unsupported left operand type for + (\"object\")\r\n```\r\n\r\nThis was introduced in #2995","author":{"url":"https://github.com/elazarg","@type":"Person","name":"elazarg"},"datePublished":"2017-03-27T21:02:08Z","url":"https://github.com/python/mypy/issues/3068"}
| 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:4000d83b-9111-d6e1-627f-a38cb145ce77 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D848:2FD3CB:B0364:F0213:6B001C78 |
| html-safe-nonce | 97f256c5e0b7df686eec784792cf185f8a4a83aa0d37880eb725b0c92cef78ab |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODQ4OjJGRDNDQjpCMDM2NDpGMDIxMzo2QjAwMUM3OCIsInZpc2l0b3JfaWQiOiI2NzE5NTczMDI4OTg1OTA0MjQ4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3d1db55ee3c8415543e0e67514fa2bc62909a0bc00ee1b1ae47e56b2428e71f8 |
| hovercard-subject-tag | issue:217374277 |
| 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/3068/issue_layout |
| twitter:image | https://opengraph.githubassets.com/58ab547247a060aa35adb6175c12532fb0ff85149ca3ef2b722f450be4133711/python/mypy/issues/3068 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/58ab547247a060aa35adb6175c12532fb0ff85149ca3ef2b722f450be4133711/python/mypy/issues/3068 |
| og:image:alt | Example: T = (int, int) x : object if isinstance(x, T): reveal_type(x) # Revealed type is 'builtins.object' x + x # E: Unsupported left operand type for + ("object") This was introduced in #2995 |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | elazarg |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0 |
| 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 | 44c658b24abf00491fb7ae5f56d42c9f38cbeab2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width