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/pl | |
parent | fafe2c9d2e3474037efa43d342a7277170972c12 (diff) | |
download | weechat-a5903e80208856bf163ad3d356037c2f3785003d.zip |
doc: add type annotations in Python prototype (scripting guide) (issue #1377)
Diffstat (limited to 'doc/pl')
-rw-r--r-- | doc/pl/weechat_scripting.pl.adoc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/pl/weechat_scripting.pl.adoc b/doc/pl/weechat_scripting.pl.adoc index 43d4060f2..5d552112e 100644 --- a/doc/pl/weechat_scripting.pl.adoc +++ b/doc/pl/weechat_scripting.pl.adoc @@ -217,11 +217,11 @@ Funkcje są wywoływane za pomocą `+weechat_xxx(arg1, arg2, ...);+`. Wszystkie skrypty WeeChat muszą się "zarejestrować" w WeeChat, musi to być pierwsza z funkcji WeeChat wywołana w skrypcie. -Prototyp: +Prototyp (Python): [source,python] ---- -weechat.register(nazwa, autor, wersja, licencja, opis, funkcja_wyłączająca, kodowanie) +def register(nazwa: str, autor: str, wersja: str, licencja: str, opis: str, funkcja_wyłączająca: str, kodowanie: str) -> int: ... ---- Argumenty: |