We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 357b450 commit 79cfcdaCopy full SHA for 79cfcda
pdoc/templates/html.mako
@@ -28,7 +28,9 @@
28
<%def name="ident(name)"><span class="ident">${name}</span></%def>
29
30
<%def name="show_source(d)">
31
- % if (show_source_code or git_link_template) and d.source and d.obj is not getattr(d.inherits, 'obj', None):
+ % if (show_source_code or git_link_template) and \
32
+ not isinstance(d, pdoc.Module) and d.source and \
33
+ d.obj is not getattr(d.inherits, 'obj', None):
34
<% git_link = format_git_link(git_link_template, d) %>
35
% if show_source_code:
36
<details class="source">
0 commit comments