summaryrefslogtreecommitdiff
path: root/doc/en
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2021-05-13 19:43:37 +0200
committerSébastien Helleu <flashcode@flashtux.org>2021-05-13 20:24:59 +0200
commita5903e80208856bf163ad3d356037c2f3785003d (patch)
tree3d718195ea7f4afbdc2611a97ada64318da32d50 /doc/en
parentfafe2c9d2e3474037efa43d342a7277170972c12 (diff)
downloadweechat-a5903e80208856bf163ad3d356037c2f3785003d.zip
doc: add type annotations in Python prototype (scripting guide) (issue #1377)
Diffstat (limited to 'doc/en')
-rw-r--r--doc/en/weechat_scripting.en.adoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/en/weechat_scripting.en.adoc b/doc/en/weechat_scripting.en.adoc
index 34b26fe96..71a593ef1 100644
--- a/doc/en/weechat_scripting.en.adoc
+++ b/doc/en/weechat_scripting.en.adoc
@@ -212,11 +212,11 @@ Functions are called with `+weechat_xxx(arg1, arg2, ...);+`.
All WeeChat scripts must "register" themselves to WeeChat, and this must be
first WeeChat function called in script.
-Prototype:
+Prototype (Python):
[source,python]
----
-weechat.register(name, author, version, license, description, shutdown_function, charset)
+def register(name: str, author: str, version: str, license: str, description: str, shutdown_function: str, charset: str) -> int: ...
----
Arguments: