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:
committed by
Sébastien Helleu
parent
f9dd5ee89b
commit
ec11126246
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user