1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-25 12:26:40 +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:
Trygve Aaberge
2022-09-29 00:28:19 +02:00
committed by Sébastien Helleu
parent e0c117e14f
commit 89400cbf7a
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -10437,7 +10437,7 @@ def hook_print(buffer: str, tags: str, message: str, strip_colors: int, callback
# example
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
+1 -1
View File
@@ -10643,7 +10643,7 @@ def hook_print(buffer: str, tags: str, message: str, strip_colors: int, callback
# exemple
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
+1 -1
View File
@@ -10775,7 +10775,7 @@ def hook_print(buffer: str, tags: str, message: str, strip_colors: int, callback
# esempio
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
+1 -1
View File
@@ -10484,7 +10484,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
+1 -1
View File
@@ -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