Title: `Generator` return type and send type are treated as `None` under `allow-any-generics` · Issue #17286 · python/mypy · GitHub
Open Graph Title: `Generator` return type and send type are treated as `None` under `allow-any-generics` · Issue #17286 · python/mypy
X Title: `Generator` return type and send type are treated as `None` under `allow-any-generics` · Issue #17286 · python/mypy
Description: Bug Report On the newest master, Generator is not the same as Generator[Any, Any, Any] with allow-any-generics enabled. This doesn't happen on 1.10.0. To Reproduce https://gist.github.com/mypy-play/16ab6e35d0fa38ee42cd9d40b3a7474d Expect...
Open Graph Description: Bug Report On the newest master, Generator is not the same as Generator[Any, Any, Any] with allow-any-generics enabled. This doesn't happen on 1.10.0. To Reproduce https://gist.github.com/mypy-play...
X Description: Bug Report On the newest master, Generator is not the same as Generator[Any, Any, Any] with allow-any-generics enabled. This doesn't happen on 1.10.0. To Reproduce https://gist.github.com/mypy-...
Opengraph URL: https://github.com/python/mypy/issues/17286
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`Generator` return type and send type are treated as `None` under `allow-any-generics`","articleBody":"\u003c!--\r\nIf you're not sure whether what you're experiencing is a mypy bug, please see the \"Question and Help\" form instead.\r\nPlease consider:\r\n\r\n- checking our common issues page: https://mypy.readthedocs.io/en/stable/common_issues.html\r\n- searching our issue tracker: https://github.com/python/mypy/issues to see if it's already been reported\r\n- asking on gitter chat: https://gitter.im/python/typing\r\n-->\r\n\r\n**Bug Report**\r\nOn the newest master, `Generator` is not the same as `Generator[Any, Any, Any]` with `allow-any-generics` enabled. This doesn't happen on 1.10.0.\r\n\r\n**To Reproduce**\r\nhttps://gist.github.com/mypy-play/16ab6e35d0fa38ee42cd9d40b3a7474d\r\n\r\n**Expected Behavior**\r\nNo errors.\r\n\r\n**Actual Behavior**\r\n```\r\nmain.py:5: error: Incompatible types in assignment (expression has type \"None\", variable has type \"str\") [assignment]\r\nmain.py:6: error: No return value expected [return-value]\r\n```\r\n","author":{"url":"https://github.com/koogoro","@type":"Person","name":"koogoro"},"datePublished":"2024-05-24T20:36:29Z","url":"https://github.com/python/mypy/issues/17286"}
| 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:450dabb5-aa90-61b3-7813-cb973b8f65ce |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C746:27E341:11DFD2:18CAFD:6B006421 |
| html-safe-nonce | 5242366e0a821046920ad9be5bfc3301dbe9ffa32d64de5c3e4101e74087630a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzQ2OjI3RTM0MToxMURGRDI6MThDQUZEOjZCMDA2NDIxIiwidmlzaXRvcl9pZCI6IjIxNjQwMTMwMjkwMDIzMzkzNjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 78cd77e67c43d0869a191ccbfd378f75f1f05f1b64491ee9a53eb6900fbebc77 |
| hovercard-subject-tag | issue:2316219890 |
| 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/17286/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8b551b3d9b150917eceefc19a4735924c75cf215bfb6f8f11ff3ad4e41a604b1/python/mypy/issues/17286 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8b551b3d9b150917eceefc19a4735924c75cf215bfb6f8f11ff3ad4e41a604b1/python/mypy/issues/17286 |
| og:image:alt | Bug Report On the newest master, Generator is not the same as Generator[Any, Any, Any] with allow-any-generics enabled. This doesn't happen on 1.10.0. To Reproduce https://gist.github.com/mypy-play... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | koogoro |
| hostname | github.com |
| expected-hostname | github.com |
| None | 25854482a1773a7c1ebb8be3d2bc1c6e61d82d78126be63b5044474a86d44d9e |
| 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 | e4f5c239e31f1f680e6bbc419ff92d774da616ec |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width