Title: __type_params__ in __build_class__ by youknowone · Pull Request #5883 · RustPython/RustPython · GitHub
Open Graph Title: __type_params__ in __build_class__ by youknowone · Pull Request #5883 · RustPython/RustPython
X Title: __type_params__ in __build_class__ by youknowone · Pull Request #5883 · RustPython/RustPython
Description: Summary by CodeRabbit New Features Added support for handling and compiling type parameters in class and function definitions, enabling PEP 695 generics. Type parameters are now accessible within class and function bodies and correctly set as attributes for compatibility. Documentation Added clarifying comments regarding type parameter registration and compilation. Chores Temporarily disabled __class_getitem__ as class methods on built-in types (bytearray, bytes, memoryview, range, and slice) pending upstream Python support.
Open Graph Description: Summary by CodeRabbit New Features Added support for handling and compiling type parameters in class and function definitions, enabling PEP 695 generics. Type parameters are now accessible withi...
X Description: Summary by CodeRabbit New Features Added support for handling and compiling type parameters in class and function definitions, enabling PEP 695 generics. Type parameters are now accessible withi...
Opengraph URL: https://github.com/RustPython/RustPython/pull/5883
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:f5ab6d17-1f10-d767-dc96-12a811a26aa5 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B58A:DEDFE:1440639:1B15D32:696ADD57 |
| html-safe-nonce | 9805ef782b225e2533d6b0da8acd3c1ac5e7f4684eb408dfa6ae399ab0bf8f8f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNThBOkRFREZFOjE0NDA2Mzk6MUIxNUQzMjo2OTZBREQ1NyIsInZpc2l0b3JfaWQiOiI1OTMyNjcwMjg2NTg1MDYwNjk1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 12e8c689f16fa1733fdb6e3c77f62082e12d0a725908c0144e96dd8bdcd70227 |
| hovercard-subject-tag | pull_request:2632839653 |
| 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/RustPython/RustPython/pull/5883/files |
| twitter:image | https://avatars.githubusercontent.com/u/69878?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/69878?s=400&v=4 |
| og:image:alt | Summary by CodeRabbit New Features Added support for handling and compiling type parameters in class and function definitions, enabling PEP 695 generics. Type parameters are now accessible withi... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 524a93f2c1f36522a3b4be4c110467ee4172245d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width