Match CPython class generator syntax error - #5
Conversation
Assisted-by: Codex:GPT-5
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe parser now reports ChangesGenerator expression error handling
Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk: ⚪ Minimal · up to The change only adjusts the syntax-error message for an already-invalid class base while preserving the existing behavior for call expressions. No actionable merge-blocking risk remains beyond normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
RustPython uses the parser diagnostic text for
SyntaxError. CPython reportsinvalid syntaxfor an unparenthesized generator expression in a class base, while calls retain the more specific generator-parenthesization diagnostic.This makes the class-definition diagnostic context-specific and updates the parser snapshot.
Assisted-by: Codex:GPT-5
Summary by CodeRabbit