1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-23 03:16:37 +02:00

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.
This commit is contained in:
Trygve Aaberge
2022-10-13 01:33:38 +02:00
committed by Sébastien Helleu
parent f9dd5ee89b
commit ec11126246
6 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -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",