From e7b51ecec815464f6e8e3a0ff4e85aa2ee476ae4 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Fri, 9 Feb 2018 03:17:36 +0100 Subject: [PATCH] Update generated code docstrings --- compiler/api/compiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/api/compiler.py b/compiler/api/compiler.py index f5f45ae4..5607ce5a 100644 --- a/compiler/api/compiler.py +++ b/compiler/api/compiler.py @@ -274,7 +274,7 @@ def start(): else: docstring_args = "No parameters required." - docstring_args = "Attributes:\n ID (:obj:`int`): ``{}``\n\n ".format(c.id) + docstring_args + docstring_args = "Attributes:\n ID: ``{}``\n\n ".format(c.id) + docstring_args if c.section == "functions": docstring_args += "\n\n Raises:\n :obj:`pyrogram.Error`"