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 /src/plugins/python | |
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 'src/plugins/python')
-rw-r--r-- | src/plugins/python/weechat.pyi | 4 |
1 files changed, 2 insertions, 2 deletions
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", |