Repository navigation
fix: use the real class name in the autosummary class template - #71
Conversation
This breaks handling of module aliases and is unnecessary: The proper indentation of the items with respect to the autoclass directive tells Sphinx where this belongs.
Documentation build overview
|
|
I think the root cause of the failing test is |
|
I don’t think the failure is completely bogus, as you’re essentially reverting #47, which made the following documentable: class Test:
test: int
"""An attribute."""So let’s not remove the test! Let’s:
|
|
Yeah, the test was actually correct. I added a new one for your use case and let Claude figure out how to get to the real class name (which turned out to be in This might still break if you have a nested class ( Can you test if that works for the project? |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #71 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 11 11
Lines 650 650
=========================================
Hits 650 650 🚀 New features to boost your workflow:
|
|
Thanks, I didn't realize that the instance variable was the problem. It seems like a Sphinx (usability) issue that class variables work with just the attribute name and instance variables require the class name to be prefixed. 1 This seems to work for my project, merging. Footnotes |
This breaks handling of module aliases and is unnecessary: The proper indentation of the items with respect to the autoclass directive tells Sphinx where this belongs.
Compare for example this new build log using scverse-doc to this older one that was still using scverse-misc.