Title: Narrow for type expr comparisons to type exprs by hauntsaninja · Pull Request #20639 · python/mypy · GitHub
Open Graph Title: Narrow for type expr comparisons to type exprs by hauntsaninja · Pull Request #20639 · python/mypy
X Title: Narrow for type expr comparisons to type exprs by hauntsaninja · Pull Request #20639 · python/mypy
Description: Optional static typing for Python. Contribute to python/mypy development by creating an account on GitHub.
Open Graph Description: I refactored the logic for type(x) narrowing in #20634 , but left this piece out since it has material semantic impact Fixes #11952 Fixes #20275
X Description: I refactored the logic for type(x) narrowing in #20634 , but left this piece out since it has material semantic impact Fixes #11952 Fixes #20275
Opengraph URL: https://github.com/python/mypy/pull/20639
X: @github
Domain: github.com
| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:d7248bcf-7aa0-3a9f-6415-e7f7c5a2c915 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 91B2:F3CF:10621D3:1787E49:6A5A13AB |
| html-safe-nonce | ffa87cdbb96b92bbcdb2d976023f7371622f4679b623e30bd296b95b98e07835 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MUIyOkYzQ0Y6MTA2MjFEMzoxNzg3RTQ5OjZBNUExM0FCIiwidmlzaXRvcl9pZCI6IjY1MTAxNDk3ODM2NzE5MzU5MTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 11f343d4b53259c0d4b00061dad1f45f2d09e5e0e8f4c72b97f98a4b844e72a5 |
| hovercard-subject-tag | pull_request:3201792482 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/voltron/pull_requests/show/python/mypy/20639/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/1262863d193b834aac524d4b21afa60eed75f9e1edd94f0733ce39a142f8b059/python/mypy/pull/20639 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1262863d193b834aac524d4b21afa60eed75f9e1edd94f0733ce39a142f8b059/python/mypy/pull/20639 |
| og:image:alt | I refactored the logic for type(x) narrowing in #20634 , but left this piece out since it has material semantic impact Fixes #11952 Fixes #20275 |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hauntsaninja |
| hostname | github.com |
| expected-hostname | github.com |
| None | 8c2fe7351e4e987cb8f75e2425a0b895d807779bc4c2d3c312be0a54082219f7 |
| turbo-cache-control | no-cache |
| 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 | 501ec24a694e4933bb3d70e768b1461c0def57a2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width