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 9711ff1 commit ee2e0c5Copy full SHA for ee2e0c5
compiler/api/compiler.py
@@ -444,7 +444,10 @@ def start(format: bool = False):
444
function_docs = docs["method"].get(c.qualname, None)
445
446
if function_docs:
447
- docstring += function_docs["desc"] + "\n"
+ docstring += function_docs.get("desc", "").strip() + "\n"
448
+
449
+ if function_docs.get("usable-by", "") != "":
450
+ docstring += "\n .. include:: /_includes/usable-by/" + function_docs["usable-by"] + ".rst\n "
451
else:
452
docstring += f"Telegram API function."
453
0 commit comments