Title: Improve readability of `typing._ProtocolMeta.__instancecheck__` by AlexWaygood · Pull Request #104649 · python/cpython · GitHub
Open Graph Title: Improve readability of `typing._ProtocolMeta.__instancecheck__` by AlexWaygood · Pull Request #104649 · python/cpython
X Title: Improve readability of `typing._ProtocolMeta.__instancecheck__` by AlexWaygood · Pull Request #104649 · python/cpython
Description: This doesn't change behaviour at all. It might improve performance slightly for isinstance() checks against concrete subclasses of protocols, but the difference wasn't that significant. This is mainly just a cleanup to improve readability, and make the code more maintainable.
Open Graph Description: This doesn't change behaviour at all. It might improve performance slightly for isinstance() checks against concrete subclasses of protocols, but the difference wasn't that significant. Thi...
X Description: This doesn't change behaviour at all. It might improve performance slightly for isinstance() checks against concrete subclasses of protocols, but the difference wasn't that signific...
Opengraph URL: https://github.com/python/cpython/pull/104649
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:c862a4ad-ffaa-aa9a-34d7-20dc543aa05f |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | 8B1C:2FB293:EA0440:14212AF:6969F440 |
| html-safe-nonce | 57476c896d23fd73c3cb6c10584b90bc43a8026411999ce4e53400dc54c03f3b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QjFDOjJGQjI5MzpFQTA0NDA6MTQyMTJBRjo2OTY5RjQ0MCIsInZpc2l0b3JfaWQiOiIyNDM3ODc2OTU4NTY1NjI2OTQ0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5019070f40650184b2ecd91fc84a32137e610f32681d7ad551859f46bf605cb7 |
| hovercard-subject-tag | pull_request:1357087942 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/python/cpython/pull/104649/checks |
| twitter:image | https://avatars.githubusercontent.com/u/66076021?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/66076021?s=400&v=4 |
| og:image:alt | This doesn't change behaviour at all. It might improve performance slightly for isinstance() checks against concrete subclasses of protocols, but the difference wasn't that significant. Thi... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | bdde15ad1b403e23b08bbd89b53fbe6bdf688cad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width