-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Incorrect base class detection #9607
Labels
Milestone
Comments
20 tasks
It seems
I got the same result with 3.9.7.
Note: This is a Dockefile for reproduce.
|
I found a workaround for Python's behavior (refs: #9654). It will be merged and fixed in 4.3.0. |
tk0miya
added a commit
that referenced
this issue
Sep 26, 2021
Fix #9607: autodoc: Incorrect base class detection
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
I have a chain of subclasses, like A -> B -> C -> D. When I document class D, it lists the base class as A instead of C.
How to Reproduce
Expected behavior
I would expect the base class to be the direct super class.
Your project
https://github.com/microsoft/torchgeo
Screenshots
No response
OS
macOS 10.15.7, Linux (whatever RtD uses)
Python version
3.8.11
Sphinx version
4.0.1, 4.0.2
Sphinx extensions
sphinx.ext.autodoc
Extra tools
No response
Additional context
I don't think this is the same as #9504 because I can reproduce it with 4.0.1 too.
Could be related to #9395.
For a class like Landsat, even though the super class is
RasterDataset
, the base class is listed astorch.utils.data.Dataset
.@calebrob6
The text was updated successfully, but these errors were encountered: