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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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>`_"""
|
||||
...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user