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.
2 parents 6c5cec0 + 9feeab8 commit d37c39bCopy full SHA for d37c39b
docs/layouts/partials/api-ref-object-partial.html
@@ -52,7 +52,7 @@ <h4> Parameters </h4>
52
{{ else }}
53
<i> None </i>
54
{{ end }}
55
-{{ else if (ne $objData.signature.return_type "None") }}
+{{ else if (gt (len $objData.signature.params) 0) }}
56
<table class="gd-docs-parameters-block">
57
<thead>
58
<tr>
scripts/docs/json_builder.py
@@ -156,6 +156,9 @@ def signature_data(sig: inspect.Signature) -> SignatureData:
156
sig_params_data = []
157
158
for param in sig.parameters.values():
159
+ # Skip self parameter in methods
160
+ if param.name == "self":
161
+ continue
162
annotation = param.annotation
163
if annotation == inspect.Parameter.empty:
164
annotation = None
0 commit comments