diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2021-05-13 19:43:37 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2021-05-13 20:24:59 +0200 |
commit | a5903e80208856bf163ad3d356037c2f3785003d (patch) | |
tree | 3d718195ea7f4afbdc2611a97ada64318da32d50 /doc/it/weechat_scripting.it.adoc | |
parent | fafe2c9d2e3474037efa43d342a7277170972c12 (diff) | |
download | weechat-a5903e80208856bf163ad3d356037c2f3785003d.zip |
doc: add type annotations in Python prototype (scripting guide) (issue #1377)
Diffstat (limited to 'doc/it/weechat_scripting.it.adoc')
-rw-r--r-- | doc/it/weechat_scripting.it.adoc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/it/weechat_scripting.it.adoc b/doc/it/weechat_scripting.it.adoc index 89861038c..a36b06fac 100644 --- a/doc/it/weechat_scripting.it.adoc +++ b/doc/it/weechat_scripting.it.adoc @@ -233,11 +233,11 @@ Functions are called with `+weechat_xxx(arg1, arg2, ...);+`. Tutti gli script WeeChat devono "registrare" loro stessi in WeeChat, e questo deve essere la prima funzione chiamata nello script di WeeChat. -Prototipo: +Prototipo (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: ... ---- Argomenti: |