Fixed more broken pdoc stuff.
qual = QUAL_PACKAGE if dobj.is_package else QUAL_NAMESPACE if dobj.is_namespace else QUAL_MODULE
prefix = f"<small class='text-muted'><em>{qual}</em></small> "
+ else:
+ if isinstance(dobj, pdoc.External):
+ prefix = f"<small class='text-muted'><em>{QUAL_EXTERNAL} {default_type}</em></small> "
else:
prefix = f"<small class='text-muted'><em>{default_type}</em></small> "
else:
url = discover_source(name)
if url is None:
- return name if not with_prefixes else f"{QUAL_EXTERNAL} {name}"
+ return name
else:
try:
ref = dobj if not hasattr(dobj.obj, "__module__") else pdoc._global_context[dobj.obj.__module__ + "." + dobj.obj.__qualname__]
<h5>Subclasses</h5>
<dl>
% for sc in subclasses:
+ % if not isinstance(sc, pdoc.External):
<dt class="nested">${link(sc, with_prefixes=True, default_type="class")}</dt>
<dd class="nested">${sc.docstring | glimpse, to_html}</dd>
+ % endif
% endfor
</dl>
<div class="sep"></div>
% if not short:
% if d.inherits:
<p class="inheritance">
- <em>Inherited from:</em>
+ <em><small>Inherited from:</small></em>
% if hasattr(d.inherits, 'cls'):
<code>${link(d.inherits.cls, with_prefixes=False)}</code>.<code>${link(d.inherits, name=d.name, with_prefixes=False)}</code>
% else:
