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.
doc-signature
1 parent 8f0ade2 commit b6c648fCopy full SHA for b6c648f
1 file changed
src/mkdocstrings_handlers/python/rendering.py
@@ -104,7 +104,14 @@ def do_format_signature(
104
template = env.get_template("signature.html")
105
signature = template.render(context.parent, function=function)
106
signature = _format_signature(callable_path, signature, line_length)
107
- return str(env.filters["highlight"](signature, language="python", inline=False))
+ return str(
108
+ env.filters["highlight"](
109
+ signature,
110
+ language="python",
111
+ inline=False,
112
+ classes=["doc-signature"],
113
+ ),
114
+ )
115
116
117
@pass_context
@@ -142,6 +149,7 @@ def do_format_attribute(
142
149
Markup.escape(signature),
143
150
language="python",
144
151
inline=False,
152
145
153
),
146
154
)
147
155
0 commit comments