Repository navigation
Address autosummary.import_cycle warning - #7486
Conversation
|
This passes. @scikit-image/core can we get this in to fix our CI? 😊 |
stefanv
left a comment
There was a problem hiding this comment.
Unsure about the changes in the ad += lines, but merging to get CI green.
|
|
||
| ad += '.. automodule:: ' + uri + '\n\n' | ||
| ad += '.. currentmodule:: ' + uri + '\n\n' | ||
| # ad += '.. currentmodule:: ' + uri + '\n\n' |
There was a problem hiding this comment.
Unsure about the changes in the ad += lines, but merging to get CI green.
Autosummary now warns if the .. currentmodule is specified and then again used as a prefix for the items in the .. autosummary directive.
Which makes me realize that this commented line was an oversight leftover from debugging and should have been uncommented. It doesn't seem to cause an problems but let's put it back in to be safe.
I'm a bit fuzzy on this because I can't find a good answer in Sphinx docs to how those two directives interact and why it seems to work with and without.
Description
Tries to address #7485, at least temporarily. Will have to monitor sphinx-doc/sphinx#12589 to judge how to properly fix this. In the meantime let's get our CI green again.
Checklist
./doc/examplesfor new featuresRelease note
For maintainers and optionally contributors, please refer to the instructions on how to document this PR for the release notes.