Title: gh-137191: Fix how type parameters are collected from `Protocol` and `Generic` bases with parameters by sobolevn · Pull Request #137281 · python/cpython · GitHub
Open Graph Title: gh-137191: Fix how type parameters are collected from `Protocol` and `Generic` bases with parameters by sobolevn · Pull Request #137281 · python/cpython
X Title: gh-137191: Fix how type parameters are collected from `Protocol` and `Generic` bases with parameters by sobolevn · Pull Request #137281 · python/cpython
Description: While fixing this problem, I've also noticed that code like class ExtraTypeVars(P1[S], Protocol[T, T2]): ... never produced any TypeError, it is in contrast to class ExtraTypeVars(P1[S], Generic[T, T2]): ... which produced this error as it should. I've fixed this as well. Issue: gh-137191
Open Graph Description: While fixing this problem, I've also noticed that code like class ExtraTypeVars(P1[S], Protocol[T, T2]): ... never produced any TypeError, it is in contrast to class ExtraTypeVars(P1[S], Generi...
X Description: While fixing this problem, I've also noticed that code like class ExtraTypeVars(P1[S], Protocol[T, T2]): ... never produced any TypeError, it is in contrast to class ExtraTypeVars(P1[S], Ge...
Opengraph URL: https://github.com/python/cpython/pull/137281
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:d2597796-a46e-2f74-87d6-900951ec40de |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | B9CA:388B78:615065:7D7AE5:696AE7BF |
| html-safe-nonce | d4098ac24c20de2258cd9e9fec37a16ea483624d02c19259ec8b2ce3c9a7862b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOUNBOjM4OEI3ODo2MTUwNjU6N0Q3QUU1OjY5NkFFN0JGIiwidmlzaXRvcl9pZCI6IjM1OTI3NTYzNzU1NTQwMjU0MDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8583dd8da6697466ff62d16d8ef0f9e4660fd81bd3fc91784fc52e41070cab9c |
| hovercard-subject-tag | pull_request:2710202017 |
| 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/137281/checks |
| twitter:image | https://avatars.githubusercontent.com/u/4660275?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/4660275?s=400&v=4 |
| og:image:alt | While fixing this problem, I've also noticed that code like class ExtraTypeVars(P1[S], Protocol[T, T2]): ... never produced any TypeError, it is in contrast to class ExtraTypeVars(P1[S], Generi... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| 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 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 | 3d84d50b3c75fa36755c3cf392edbc09e626f979 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width