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