summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2022-10-13 01:33:38 +0200
committerSébastien Helleu <flashcode@flashtux.org>2022-10-14 23:00:33 +0200
commitec1112624602710a7bd301b5060299a44c8ea607 (patch)
treecea8fa8a798b3a2c3f5c95d958e425e3bfb22cc2
parentf9dd5ee89bb094784426d1da95deb41a9eed6b22 (diff)
downloadweechat-ec1112624602710a7bd301b5060299a44c8ea607.zip
python: Fix return types for config option callbacks
I erroneously typed the return types for these to int in commit e0c117e14, but they should be None.
-rw-r--r--doc/en/weechat_plugin_api.en.adoc4
-rw-r--r--doc/fr/weechat_plugin_api.fr.adoc4
-rw-r--r--doc/it/weechat_plugin_api.it.adoc4
-rw-r--r--doc/ja/weechat_plugin_api.ja.adoc4
-rw-r--r--doc/sr/weechat_plugin_api.sr.adoc4
-rw-r--r--src/plugins/python/weechat.pyi4
6 files changed, 12 insertions, 12 deletions
diff --git a/doc/en/weechat_plugin_api.en.adoc b/doc/en/weechat_plugin_api.en.adoc
index 096911b9c..c72bebe2f 100644
--- a/doc/en/weechat_plugin_api.en.adoc
+++ b/doc/en/weechat_plugin_api.en.adoc
@@ -6604,10 +6604,10 @@ def option4_check_value_cb(data: str, option: str, value: str) -> int:
return 1
# return 0
-def option4_change_cb(data: str, option: str) -> int:
+def option4_change_cb(data: str, option: str) -> None:
# ...
-def option4_delete_cb(data: str, option: str) -> int:
+def option4_delete_cb(data: str, option: str) -> None:
# ...
option1 = weechat.config_new_option(config_file, section, "option1", "boolean",
diff --git a/doc/fr/weechat_plugin_api.fr.adoc b/doc/fr/weechat_plugin_api.fr.adoc
index d70f56eca..7f738eca8 100644
--- a/doc/fr/weechat_plugin_api.fr.adoc
+++ b/doc/fr/weechat_plugin_api.fr.adoc
@@ -6709,10 +6709,10 @@ def option4_check_value_cb(data: str, option: str, value: str) -> int:
return 1
# return 0
-def option4_change_cb(data: str, option: str) -> int:
+def option4_change_cb(data: str, option: str) -> None:
# ...
-def option4_delete_cb(data: str, option: str) -> int:
+def option4_delete_cb(data: str, option: str) -> None:
# ...
option1 = weechat.config_new_option(config_file, section, "option1", "boolean",
diff --git a/doc/it/weechat_plugin_api.it.adoc b/doc/it/weechat_plugin_api.it.adoc
index 6d205d72f..072516908 100644
--- a/doc/it/weechat_plugin_api.it.adoc
+++ b/doc/it/weechat_plugin_api.it.adoc
@@ -6836,10 +6836,10 @@ def option4_check_value_cb(data: str, option: str, value: str) -> int:
return 1
# return 0
-def option4_change_cb(data: str, option: str) -> int:
+def option4_change_cb(data: str, option: str) -> None:
# ...
-def option4_delete_cb(data: str, option: str) -> int:
+def option4_delete_cb(data: str, option: str) -> None:
# ...
option1 = weechat.config_new_option(config_file, section, "option1", "boolean",
diff --git a/doc/ja/weechat_plugin_api.ja.adoc b/doc/ja/weechat_plugin_api.ja.adoc
index b8659fd4d..11e5e3868 100644
--- a/doc/ja/weechat_plugin_api.ja.adoc
+++ b/doc/ja/weechat_plugin_api.ja.adoc
@@ -6634,10 +6634,10 @@ def option4_check_value_cb(data: str, option: str, value: str) -> int:
return 1
# return 0
-def option4_change_cb(data: str, option: str) -> int:
+def option4_change_cb(data: str, option: str) -> None:
# ...
-def option4_delete_cb(data: str, option: str) -> int:
+def option4_delete_cb(data: str, option: str) -> None:
# ...
option1 = weechat.config_new_option(config_file, section, "option1", "boolean",
diff --git a/doc/sr/weechat_plugin_api.sr.adoc b/doc/sr/weechat_plugin_api.sr.adoc
index 194aeaa3c..b46cc19db 100644
--- a/doc/sr/weechat_plugin_api.sr.adoc
+++ b/doc/sr/weechat_plugin_api.sr.adoc
@@ -6391,10 +6391,10 @@ def option4_check_value_cb(data: str, option: str, value: str) -> int:
return 1
# return 0
-def option4_change_cb(data: str, option: str) -> int:
+def option4_change_cb(data: str, option: str) -> None:
# ...
-def option4_delete_cb(data: str, option: str) -> int:
+def option4_delete_cb(data: str, option: str) -> None:
# ...
option1 = weechat.config_new_option(config_file, section, "option1", "boolean",
diff --git a/src/plugins/python/weechat.pyi b/src/plugins/python/weechat.pyi
index 54ff08446..ce72b2ad4 100644
--- a/src/plugins/python/weechat.pyi
+++ b/src/plugins/python/weechat.pyi
@@ -550,10 +550,10 @@ def config_new_option(config_file: str, section: str, name: str, type: str, desc
return 1
# return 0
- def option4_change_cb(data: str, option: str) -> int:
+ def option4_change_cb(data: str, option: str) -> None:
# ...
- def option4_delete_cb(data: str, option: str) -> int:
+ def option4_delete_cb(data: str, option: str) -> None:
# ...
option1 = weechat.config_new_option(config_file, section, "option1", "boolean",