1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

doc/api: add missing type for argument "count" in Python prototype of function ngettext

This commit is contained in:
Sébastien Helleu
2022-02-14 07:25:22 +01:00
parent ba7ff87d19
commit a2bb57bf82
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -537,7 +537,7 @@ Script (Python):
[source,python]
----
# prototype
def ngettext(string: str, plural: str, count) -> str: ...
def ngettext(string: str, plural: str, count: int) -> str: ...
# example
num_files = 2
+1 -1
View File
@@ -547,7 +547,7 @@ Script (Python) :
[source,python]
----
# prototype
def ngettext(string: str, plural: str, count) -> str: ...
def ngettext(string: str, plural: str, count: int) -> str: ...
# exemple
num_files = 2
+1 -1
View File
@@ -568,7 +568,7 @@ Script (Python):
[source,python]
----
# prototipo
def ngettext(string: str, plural: str, count) -> str: ...
def ngettext(string: str, plural: str, count: int) -> str: ...
# esempio
num_files = 2
+1 -1
View File
@@ -547,7 +547,7 @@ char *str = weechat_ngettext ("file", "files", num_files);
[source,python]
----
# プロトタイプ
def ngettext(string: str, plural: str, count) -> str: ...
def ngettext(string: str, plural: str, count: int) -> str: ...
# 例
num_files = 2
+1 -1
View File
@@ -511,7 +511,7 @@ char *str = weechat_ngettext ("file", "files", num_files);
[source, python]
----
# прототип
def ngettext(string: str, plural: str, count) -> str: ...
def ngettext(string: str, plural: str, count: int) -> str: ...
# пример
num_files = 2
+1 -1
View File
@@ -59,7 +59,7 @@ def gettext(string: str) -> str:
...
def ngettext(string: str, plural: str, count) -> str:
def ngettext(string: str, plural: str, count: int) -> str:
"""`ngettext in WeeChat plugin API reference <https://weechat.org/doc/api#_ngettext>`_"""
...