-
Notifications
You must be signed in to change notification settings - Fork 23
Fix inheritance documentation with Sphinx RST syntax and method grouping #231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Fix inheritance documentation with Sphinx RST syntax and method grouping #231
Conversation
Signed-off-by: Khushi Agrawal <149886195+khushiiagrawal@users.noreply.github.com>
📝 WalkthroughWalkthroughThe changes introduce inheritance-aware documentation generation and method tracking throughout the code generator pipeline. Inherited classes now display Sphinx-style Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing touches
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (4)
🧰 Additional context used🧬 Code graph analysis (3)autowrap/DeclResolver.py (1)
tests/test_full_library.py (1)
autowrap/CodeGenerator.py (2)
🪛 Ruff (0.14.10)autowrap/PXDParser.py498-498: Loop control variable Rename unused (B007) 🔇 Additional comments (12)
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 |
|
@jpfeuffer Please take a look. |
|
Looks good but to be sure, we would need to see a sphinx documentation page with autodoc for this. |
Summary
Fixes two issues with inheritance documentation:
:py:class:BaseClass`` instead of plain text for inheritance linksBaseClass." notationFixes #180
Changes
CodeGenerator.py: Generate Sphinx RST syntax in class docstrings; group inherited methods after class-defined methodsPXDParser.py: Track inherited methods with base class namesDeclResolver.py: Pass base class name when attaching inherited methodstest_full_library.py: Update expected docstring length (93→101 chars)Testing
.pyifile docstringsTest case:
Bklassinheriting fromA_second- inheritscallA2()methodSummary by CodeRabbit
Release Notes
New Features
Improvements
Tests
✏️ Tip: You can customize this high-level summary in your review settings.