summaryrefslogtreecommitdiff
path: root/doc/de
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/de
parentfafe2c9d2e3474037efa43d342a7277170972c12 (diff)
downloadweechat-a5903e80208856bf163ad3d356037c2f3785003d.zip
doc: add type annotations in Python prototype (scripting guide) (issue #1377)
Diffstat (limited to 'doc/de')
-rw-r--r--doc/de/weechat_scripting.de.adoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/de/weechat_scripting.de.adoc b/doc/de/weechat_scripting.de.adoc
index 71a147bfe..3eab42075 100644
--- a/doc/de/weechat_scripting.de.adoc
+++ b/doc/de/weechat_scripting.de.adoc
@@ -222,11 +222,11 @@ Funktionen werden aufgerufen mittels `+weechat_xxx(arg1, arg2, ...);+`.
Ein WeeChat-Skript muss sich bei WeeChat "registrieren". Dazu muss das Skript
zuerst die "register" Funktion ausführen.
-Prototyp:
+Prototyp (Python):
[source,python]
----
-weechat.register(Name, Author, Version, Lizenz, Beschreibung, Shutdown_Funktion, Zeichensatz)
+def register(name: str, author: str, version: str, license: str, description: str, shutdown_function: str, charset: str) -> int: ...
----
Argumente: