| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:fd4b13ad-914a-5c6b-5bfb-46778a02f437 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | ED06:2BBB15:96D82D:C97EC0:6A5B8840 |
| html-safe-nonce | 30ac89b3d5b38e304dda97c22bfe4c97f700b1513cae40659ab99fdd25b8698d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDA2OjJCQkIxNTo5NkQ4MkQ6Qzk3RUMwOjZBNUI4ODQwIiwidmlzaXRvcl9pZCI6IjI4MTEwNzkzNDU2NzQzNTY4MDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 975e5012f33b17302a12079633e92708323ba50ac69d340bf1bd79beb6110ede |
| hovercard-subject-tag | pull_request:3928456483 |
| 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 | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/RustPython/RustPython/8160/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/e8183a4f32ce0aee72a6cc6d5835bd4337fa36ae14f3ecf85cc4e4d6a2ed4b85/RustPython/RustPython/pull/8160 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e8183a4f32ce0aee72a6cc6d5835bd4337fa36ae14f3ecf85cc4e4d6a2ed4b85/RustPython/RustPython/pull/8160 |
| og:image:alt | Closes #xxxx
This PR follows our AI policy
Summary
astral-sh/ruff#26271
Summary by CodeRabbit
Bug Fixes
Strengthened dictionary-comprehension handling to require optional keys be present, co... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ShaharNaveh |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-cache |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/RustPython/RustPython/pull/8160#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F8160 |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F8160 |
|
Sign up
| https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=RustPython%2FRustPython |
| Reload | https://github.com/RustPython/RustPython/pull/8160 |
| Reload | https://github.com/RustPython/RustPython/pull/8160 |
| Reload | https://github.com/RustPython/RustPython/pull/8160 |
| Please reload this page | https://github.com/RustPython/RustPython/pull/8160 |
|
RustPython
| https://github.com/RustPython |
| RustPython | https://github.com/RustPython/RustPython |
|
Notifications
| https://github.com/login?return_to=%2FRustPython%2FRustPython |
|
Fork
1.5k
| https://github.com/login?return_to=%2FRustPython%2FRustPython |
|
Star
22.2k
| https://github.com/login?return_to=%2FRustPython%2FRustPython |
|
Code
| https://github.com/RustPython/RustPython |
|
Issues
291
| https://github.com/RustPython/RustPython/issues |
|
Pull requests
105
| https://github.com/RustPython/RustPython/pulls |
|
Discussions
| https://github.com/RustPython/RustPython/discussions |
|
Actions
| https://github.com/RustPython/RustPython/actions |
|
Projects
| https://github.com/RustPython/RustPython/projects |
|
Models
| https://github.com/RustPython/RustPython/models |
|
Wiki
| https://github.com/RustPython/RustPython/wiki |
|
Security and quality
0
| https://github.com/RustPython/RustPython/security |
|
Insights
| https://github.com/RustPython/RustPython/pulse |
|
Code
| https://github.com/RustPython/RustPython |
|
Issues
| https://github.com/RustPython/RustPython/issues |
|
Pull requests
| https://github.com/RustPython/RustPython/pulls |
|
Discussions
| https://github.com/RustPython/RustPython/discussions |
|
Actions
| https://github.com/RustPython/RustPython/actions |
|
Projects
| https://github.com/RustPython/RustPython/projects |
|
Models
| https://github.com/RustPython/RustPython/models |
|
Wiki
| https://github.com/RustPython/RustPython/wiki |
|
Security and quality
| https://github.com/RustPython/RustPython/security |
|
Insights
| https://github.com/RustPython/RustPython/pulse |
| ShaharNaveh | https://github.com/ShaharNaveh |
| RustPython:main | https://github.com/RustPython/RustPython/tree/main |
| ShaharNaveh:ruff-0-15-19 | https://github.com/ShaharNaveh/RustPython/tree/ruff-0-15-19 |
| Conversation | https://github.com/RustPython/RustPython/pull/8160 |
| Commits10 (10) | https://github.com/RustPython/RustPython/pull/8160/commits |
| Checks | https://github.com/RustPython/RustPython/pull/8160/checks |
| Files changed | https://github.com/RustPython/RustPython/pull/8160/files |
| Update ruff to 0.15.19, use it from crates.io | https://github.com/RustPython/RustPython/pull/8160#top |
| ShaharNaveh | https://github.com/ShaharNaveh |
| RustPython:main | https://github.com/RustPython/RustPython/tree/main |
| ShaharNaveh:ruff-0-15-19 | https://github.com/ShaharNaveh/RustPython/tree/ruff-0-15-19 |
|
| https://github.com/ShaharNaveh |
| ShaharNaveh | https://github.com/ShaharNaveh |
| Jun 24, 2026 | https://github.com/RustPython/RustPython/pull/8160#issue-4735775265 |
| Please reload this page | https://github.com/RustPython/RustPython/pull/8160 |
| AI policy | https://github.com/RustPython/.github/blob/main/AI_POLICY.md |
| astral-sh/ruff#26271 | https://github.com/astral-sh/ruff/pull/26271 |
| Please reload this page | https://github.com/RustPython/RustPython/pull/8160 |
| https://github.com/apps/coderabbitai |
| coderabbitai | https://github.com/apps/coderabbitai |
| Jun 24, 2026 | https://github.com/RustPython/RustPython/pull/8160#issuecomment-4790398134 |
| Please reload this page | https://github.com/RustPython/RustPython/pull/8160 |
| https://app.coderabbit.ai/change-stack/RustPython/RustPython/pull/8160?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack |
| RustPython/RustPython#7789 | https://github.com/RustPython/RustPython/pull/7789 |
| CodeRabbit | https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=RustPython/RustPython&utm_content=8160 |
| X | https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai |
| Mastodon | https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai |
| Reddit | https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai |
| LinkedIn | https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code |
| Please reload this page | https://github.com/RustPython/RustPython/pull/8160 |
| https://github.com/apps/github-actions |
| github-actions | https://github.com/apps/github-actions |
| Jun 24, 2026 | https://github.com/RustPython/RustPython/pull/8160#issuecomment-4790403158 |
| Please reload this page | https://github.com/RustPython/RustPython/pull/8160 |
| Please reload this page | https://github.com/RustPython/RustPython/pull/8160 |
| https://github.com/apps/coderabbitai |
| coderabbitai | https://github.com/apps/coderabbitai |
|
Jun 24, 2026
| https://github.com/RustPython/RustPython/pull/8160#pullrequestreview-4563237043 |
|
View reviewed changes
| https://github.com/RustPython/RustPython/pull/8160/files |
| coderabbitai | https://github.com/apps/coderabbitai |
| https://github.com/RustPython/RustPython/pull/8160#pullrequestreview-4563237043 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| 39a2fda | https://github.com/RustPython/RustPython/commit/39a2fda23f2577f70bccac6f1bbb1723aff3c625 |
| a0690de | https://github.com/RustPython/RustPython/commit/a0690de19362a36e843d5e3bc67490ee7f9fc81e |
| Please reload this page | https://github.com/RustPython/RustPython/pull/8160 |
| crates/codegen/src/unparse.rs | https://github.com/RustPython/RustPython/pull/8160/files#diff-541f63d2cae775159f02b50af9cb6320c6e55854889b2fd22e2b99fa33b5646a |
| Please reload this page | https://github.com/RustPython/RustPython/pull/8160 |
| ShaharNaveh | https://github.com/ShaharNaveh |
| June 24, 2026 18:00 | https://github.com/RustPython/RustPython/pull/8160#commits-pushed-9a2efc7 |
|
| https://github.com/ShaharNaveh |
| Update ruff to 0.15.19 | https://github.com/RustPython/RustPython/pull/8160/commits/9a2efc729d435800230cfcc78d36e831f59761d6 |
| 9a2efc7 | https://github.com/RustPython/RustPython/pull/8160/commits/9a2efc729d435800230cfcc78d36e831f59761d6 |
|
| https://github.com/ShaharNaveh |
| dependabot | https://github.com/RustPython/RustPython/pull/8160/commits/2603dd172e9a236f2e56d47ac3c9262a8353d799 |
| 2603dd1 | https://github.com/RustPython/RustPython/pull/8160/commits/2603dd172e9a236f2e56d47ac3c9262a8353d799 |
|
| https://github.com/ShaharNaveh |
| fix codegen | https://github.com/RustPython/RustPython/pull/8160/commits/717ef0c60fc02b374b5a148a78cac87043273810 |
| 717ef0c | https://github.com/RustPython/RustPython/pull/8160/commits/717ef0c60fc02b374b5a148a78cac87043273810 |
|
| https://github.com/ShaharNaveh |
| vm compiles | https://github.com/RustPython/RustPython/pull/8160/commits/11de11e17f5dec0e40099e59a635d06f32632861 |
| 11de11e | https://github.com/RustPython/RustPython/pull/8160/commits/11de11e17f5dec0e40099e59a635d06f32632861 |
|
| https://github.com/ShaharNaveh |
| Align tests | https://github.com/RustPython/RustPython/pull/8160/commits/58df4ecdfda815a070c6e9df0dccda749fe61d34 |
| 58df4ec | https://github.com/RustPython/RustPython/pull/8160/commits/58df4ecdfda815a070c6e9df0dccda749fe61d34 |
|
| https://github.com/ShaharNaveh |
| unmark passing test | https://github.com/RustPython/RustPython/pull/8160/commits/4ad7ad30b5d5ae38716ac5c930af2b9dccf4ca0a |
| 4ad7ad3 | https://github.com/RustPython/RustPython/pull/8160/commits/4ad7ad30b5d5ae38716ac5c930af2b9dccf4ca0a |
| https://github.com/ShaharNaveh |
| ShaharNaveh | https://github.com/ShaharNaveh |
| force-pushed | https://github.com/RustPython/RustPython/compare/c179e29b28eec20eec0df8cac7459ecd85e68df8..2117417f1830be881e537b633940fca86f128537 |
| c179e29 | https://github.com/RustPython/RustPython/commit/c179e29b28eec20eec0df8cac7459ecd85e68df8 |
| 2117417 | https://github.com/RustPython/RustPython/commit/2117417f1830be881e537b633940fca86f128537 |
|
Compare
| https://github.com/RustPython/RustPython/compare/c179e29b28eec20eec0df8cac7459ecd85e68df8..2117417f1830be881e537b633940fca86f128537 |
| June 24, 2026 15:00 | https://github.com/RustPython/RustPython/pull/8160#event-27151455664 |
|
| https://github.com/ShaharNaveh |
| clippy | https://github.com/RustPython/RustPython/pull/8160/commits/6b8f4d08a2cc16c491587d2d8f5a14f9ad0416ca |
| 6b8f4d0 | https://github.com/RustPython/RustPython/pull/8160/commits/6b8f4d08a2cc16c491587d2d8f5a14f9ad0416ca |
| https://github.com/ShaharNaveh |
| ShaharNaveh | https://github.com/ShaharNaveh |
| force-pushed | https://github.com/RustPython/RustPython/compare/2117417f1830be881e537b633940fca86f128537..6b8f4d08a2cc16c491587d2d8f5a14f9ad0416ca |
| 2117417 | https://github.com/RustPython/RustPython/commit/2117417f1830be881e537b633940fca86f128537 |
| 6b8f4d0 | https://github.com/RustPython/RustPython/commit/6b8f4d08a2cc16c491587d2d8f5a14f9ad0416ca |
|
Compare
| https://github.com/RustPython/RustPython/compare/2117417f1830be881e537b633940fca86f128537..6b8f4d08a2cc16c491587d2d8f5a14f9ad0416ca |
| June 24, 2026 15:48 | https://github.com/RustPython/RustPython/pull/8160#event-27153633201 |
| ShaharNaveh | https://github.com/ShaharNaveh |
| June 24, 2026 19:39 | https://github.com/RustPython/RustPython/pull/8160#commits-pushed-daba645 |
|
| https://github.com/ShaharNaveh |
| unmark passing test | https://github.com/RustPython/RustPython/pull/8160/commits/daba6454b52b8743b5e610c4fe794a820dce6a19 |
| daba645 | https://github.com/RustPython/RustPython/pull/8160/commits/daba6454b52b8743b5e610c4fe794a820dce6a19 |
|
| https://github.com/ShaharNaveh |
| Don't crash for PEP 798 | https://github.com/RustPython/RustPython/pull/8160/commits/e5db71540dac915368eeb35aa30d9936db101367 |
| e5db715 | https://github.com/RustPython/RustPython/pull/8160/commits/e5db71540dac915368eeb35aa30d9936db101367 |
|
| https://github.com/ShaharNaveh |
| unmark passing test | https://github.com/RustPython/RustPython/pull/8160/commits/b8d5c20f010ecf6193bdba6d650f69410f823d7b |
| b8d5c20 | https://github.com/RustPython/RustPython/pull/8160/commits/b8d5c20f010ecf6193bdba6d650f69410f823d7b |
| https://github.com/youknowone |
| youknowone | https://github.com/youknowone |
| Jun 25, 2026 | https://github.com/RustPython/RustPython/pull/8160#issuecomment-4799905244 |
| #8138 | https://github.com/RustPython/RustPython/pull/8138 |
| RustPython/ruff#2 | https://github.com/RustPython/ruff/pull/2 |
| Please reload this page | https://github.com/RustPython/RustPython/pull/8160 |
| https://github.com/ShaharNaveh |
| ShaharNaveh | https://github.com/ShaharNaveh |
| Jun 26, 2026 | https://github.com/RustPython/RustPython/pull/8160#issuecomment-4807002815 |
| #8138 | https://github.com/RustPython/RustPython/pull/8138 |
| RustPython/ruff#2 | https://github.com/RustPython/ruff/pull/2 |
| #8138 | https://github.com/RustPython/RustPython/pull/8138 |
| Please reload this page | https://github.com/RustPython/RustPython/pull/8160 |
| https://github.com/ShaharNaveh |
| ShaharNaveh | https://github.com/ShaharNaveh |
| June 26, 2026 06:40 | https://github.com/RustPython/RustPython/pull/8160#event-27233925475 |
| https://github.com/ShaharNaveh |
| ShaharNaveh | https://github.com/ShaharNaveh |
| Jun 26, 2026 | https://github.com/RustPython/RustPython/pull/8160#issuecomment-4810155539 |
| #8138 | https://github.com/RustPython/RustPython/pull/8138 |
| RustPython/ruff#2 | https://github.com/RustPython/ruff/pull/2 |
| disallowed_types | https://rust-lang.github.io/rust-clippy/stable/index.html#disallowed_types |
| Please reload this page | https://github.com/RustPython/RustPython/pull/8160 |
| https://github.com/youknowone |
| youknowone | https://github.com/youknowone |
| Jun 30, 2026 | https://github.com/RustPython/RustPython/pull/8160#issuecomment-4845137821 |
| Please reload this page | https://github.com/RustPython/RustPython/pull/8160 |
| https://github.com/ShaharNaveh |
| ShaharNaveh | https://github.com/ShaharNaveh |
| Jun 30, 2026 | https://github.com/RustPython/RustPython/pull/8160#issuecomment-4845193550 |
| Please reload this page | https://github.com/RustPython/RustPython/pull/8160 |
| https://github.co/hiddenchars |
| https://github.com/RustPython/RustPython/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F8160 |
|
| https://github.com/apps/coderabbitai |
|
coderabbitai[bot]
| https://github.com/apps/coderabbitai |
|
| https://github.com/RustPython/RustPython/pull/8160/files/a0690de19362a36e843d5e3bc67490ee7f9fc81e |
| Please reload this page | https://github.com/RustPython/RustPython/pull/8160 |
|
| https://github.com/ShaharNaveh |
|
| https://github.com/youknowone |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |