mirror of
https://github.com/weechat/weechat.git
synced 2026-07-07 02:03:13 +02:00
doc/api: Remove unnecessary cast in Python example
The highlight argument is already an int, so no point in casting it.
This commit is contained in:
committed by
Sébastien Helleu
parent
e0c117e14f
commit
89400cbf7a
@@ -10079,7 +10079,7 @@ def hook_print(buffer: str, tags: str, message: str, strip_colors: int, callback
|
||||
|
||||
# пример
|
||||
def my_print_cb(data: str, buffer: str, date: str, tags: str, displayed: int, highlight: int, prefix: str, message: str) -> int:
|
||||
if int(highlight):
|
||||
if highlight:
|
||||
# ...
|
||||
return weechat.WEECHAT_RC_OK
|
||||
|
||||
|
||||
Reference in New Issue
Block a user