summaryrefslogtreecommitdiff
path: root/doc/pl
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/pl
parentfafe2c9d2e3474037efa43d342a7277170972c12 (diff)
downloadweechat-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.adoc4
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: