1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 22:06:38 +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
@@ -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",
+2 -2
View File
@@ -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",
+2 -2
View File
@@ -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",
+2 -2
View File
@@ -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",
+2 -2
View File
@@ -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",
+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",