Title: Refactor and improve narrowing for type(x) == t checks by hauntsaninja · Pull Request #20634 · python/mypy · GitHub
Open Graph Title: Refactor and improve narrowing for type(x) == t checks by hauntsaninja · Pull Request #20634 · python/mypy
X Title: Refactor and improve narrowing for type(x) == t checks by hauntsaninja · Pull Request #20634 · python/mypy
Description: Optional static typing for Python. Contribute to python/mypy development by creating an account on GitHub.
Open Graph Description: Rewrites this logic to fit in with the new narrowing I do. Cleans things up, makes things a little faster, and improves semantics on some not realistic edge cases for chained comparisons
X Description: Rewrites this logic to fit in with the new narrowing I do. Cleans things up, makes things a little faster, and improves semantics on some not realistic edge cases for chained comparisons
Opengraph URL: https://github.com/python/mypy/pull/20634
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:525927b6-0311-68ac-bcd8-796d97fa7efc |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D7F6:1B174:88A6F8:BACC79:6A592A71 |
| html-safe-nonce | dc877d3f239d8a99912abaf865ab23e3931d2cafbe550bd280ce99437e4a1994 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEN0Y2OjFCMTc0Ojg4QTZGODpCQUNDNzk6NkE1OTJBNzEiLCJ2aXNpdG9yX2lkIjoiMjY1NTg0ODk3OTgwNDc5MzQ1NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 29f648de23bb00cd9deedd31b69dd96af9c74590b37baaa909689ff7bcc522d1 |
| hovercard-subject-tag | pull_request:3201242982 |
| 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/20634/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/17015bad08d387c6f97b2955a3e6752a945d1587aecb65298f155c762abe4a4f/python/mypy/pull/20634 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/17015bad08d387c6f97b2955a3e6752a945d1587aecb65298f155c762abe4a4f/python/mypy/pull/20634 |
| og:image:alt | Rewrites this logic to fit in with the new narrowing I do. Cleans things up, makes things a little faster, and improves semantics on some not realistic edge cases for chained comparisons |
| 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 | 30abb2b48d3b1b476bbaf01f49ead8ef91062bfd762d3fa28a956f4c99653343 |
| 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 | f2e5b4fd472ea10ac216e358bbd0821a90dae8bb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width