Title: Improve unhashable set element errors by kyokuping · Pull Request #8286 · RustPython/RustPython · GitHub
Open Graph Title: Improve unhashable set element errors by kyokuping · Pull Request #8286 · RustPython/RustPython
X Title: Improve unhashable set element errors by kyokuping · Pull Request #8286 · RustPython/RustPython
Description: Assisted-by: Codex:gpt-5.4 Closes #xxxx This PR follows our AI policy Summary Improve unhashable element error messages for set contains, add, and discard operations while preserving non-TypeError exceptions. Summary by CodeRabbit Bug Fixes Improved TypeError output for set operations involving unhashable elements (when checking membership and when adding/removing/discarding). Set-related errors now clearly report the invalid element’s type and keep the original TypeError available as the underlying cause (__cause__).
Open Graph Description: Assisted-by: Codex:gpt-5.4 Closes #xxxx This PR follows our AI policy Summary Improve unhashable element error messages for set contains, add, and discard operations while preserving non-Ty...
X Description: Assisted-by: Codex:gpt-5.4 Closes #xxxx This PR follows our AI policy Summary Improve unhashable element error messages for set contains, add, and discard operations while preserving non-Ty...
Opengraph URL: https://github.com/RustPython/RustPython/pull/8286
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:87d75a16-013a-b8ea-0ae5-1a9322e31357 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9B9A:C58FE:19842D5:227C8B7:6A597BD8 |
| html-safe-nonce | bbd90043d28ea727f0c6562ade64f78ed70088611c0b5338036e71db551d9cd2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QjlBOkM1OEZFOjE5ODQyRDU6MjI3QzhCNzo2QTU5N0JEOCIsInZpc2l0b3JfaWQiOiI1Mzc0ODc5NDU5NjU4NjE4NDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5021184aecbf8619c74a0eb887356c755ed5f7010baf29a022b5abdf773e7605 |
| hovercard-subject-tag | pull_request:4055164017 |
| 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/8286/files |
| twitter:image | https://avatars.githubusercontent.com/u/109906379?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/109906379?s=400&v=4 |
| og:image:alt | Assisted-by: Codex:gpt-5.4 Closes #xxxx This PR follows our AI policy Summary Improve unhashable element error messages for set contains, add, and discard operations while preserving non-Ty... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | a540949572872b935b393b36db38922db390ae71c859537d741b8f3eb7e545b5 |
| 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 | 624bb50a7497aa346bef8cc3743af408a9ea10ca |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width