Title: gh-89828: Do not relay the __class__ attribute in GenericAlias by serhiy-storchaka · Pull Request #93754 · python/cpython · GitHub
Open Graph Title: gh-89828: Do not relay the __class__ attribute in GenericAlias by serhiy-storchaka · Pull Request #93754 · python/cpython
X Title: gh-89828: Do not relay the __class__ attribute in GenericAlias by serhiy-storchaka · Pull Request #93754 · python/cpython
Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.
Open Graph Description: list[int].__class__ returned type, and isinstance(list[int], type) returned True. It caused numerous problems in code that checks isinstance(x, type). #89828
X Description: list[int].__class__ returned type, and isinstance(list[int], type) returned True. It caused numerous problems in code that checks isinstance(x, type). #89828
Opengraph URL: https://github.com/python/cpython/pull/93754
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/commits(.:format) |
| route-controller | pull_requests |
| route-action | commits |
| fetch-nonce | v2:05d3f73b-e140-87a9-ac9d-7b66bd79ee19 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9D24:247F51:9D20F6:D35E1C:69697F49 |
| html-safe-nonce | b11d29bed0c9fd905a8a6af6235747e48427ded96aa3876526b034de8b804ab1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RDI0OjI0N0Y1MTo5RDIwRjY6RDM1RTFDOjY5Njk3RjQ5IiwidmlzaXRvcl9pZCI6IjE4MjgwMDA0ODQ1MjU5NjUxMjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ff1cf95e23a2b139076a1f27e177a9fa6e2667555d37d21b5714a559b3336e2e |
| hovercard-subject-tag | pull_request:965047562 |
| 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/python/cpython/pull/93754/commits |
| twitter:image | https://opengraph.githubassets.com/afa9b02ef3240ebc9ea766d61a00d550abdd6864f6269fdf7b315a06e5246004/python/cpython/pull/93754 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/afa9b02ef3240ebc9ea766d61a00d550abdd6864f6269fdf7b315a06e5246004/python/cpython/pull/93754 |
| og:image:alt | list[int].__class__ returned type, and isinstance(list[int], type) returned True. It caused numerous problems in code that checks isinstance(x, type). #89828 |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | serhiy-storchaka |
| hostname | github.com |
| expected-hostname | github.com |
| None | f33e4b94c8824ab2b434d82a94139432fb5ebee9df4b75304140ad22508c4a77 |
| turbo-cache-control | no-cache |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 48f380098b30acbb700b04f1724481ca10d574fc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width