diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2022-10-13 01:33:38 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2022-10-14 23:00:33 +0200 |
commit | ec1112624602710a7bd301b5060299a44c8ea607 (patch) | |
tree | cea8fa8a798b3a2c3f5c95d958e425e3bfb22cc2 /doc/it | |
parent | f9dd5ee89bb094784426d1da95deb41a9eed6b22 (diff) | |
download | weechat-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.
Diffstat (limited to 'doc/it')
-rw-r--r-- | doc/it/weechat_plugin_api.it.adoc | 4 |
1 files changed, 2 insertions, 2 deletions
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", |