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:
committed by
Sébastien Helleu
parent
e0c117e14f
commit
89400cbf7a
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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