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
autosummary: determine "canonical" name of the class in template #5589
Milestone
Comments
I ran into the same problem! |
Indeed, this is broken. +1 to give canonical name (alias name?). |
Anything new here? |
1 task
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Subject: it is currently impossible to determine canonical class name from the template
Problem
:show-inheritance:
parameter forautoclass
block produces code referencing the canonical name of the class, but{{ objname }}
value is the non-canonical one.Bases:
is broken and is not clickable.myclass.__module__ + '.' + myclass.__name__
) then I could include that as a TOC entry or something like that.Procedure to reproduce the problem
I'll illustrate it with the following minimum example:
Error logs / results
mypkg.Child
is displayed as so, but its base class is listed asmypkg.parent.Parent
and it not clickable.Expected results
It should be possible to determine canonical class name, or class' actual module name.
For now, template variable
module
is derieved from the textual name given as the input. It is not currently possible to accessmyobject.__module__
.Environment info
The text was updated successfully, but these errors were encountered: