@@ -54,19 +54,19 @@ class-based API instead.
5454
5555
5656.. index :: single: _ (underscore); gettext
57- .. function :: gettext(message)
57+ .. function :: gettext(message, / )
5858
5959 Return the localized translation of *message *, based on the current global
6060 domain, language, and locale directory. This function is usually aliased as
6161 :func: `!_ ` in the local namespace (see examples below).
6262
6363
64- .. function :: dgettext(domain, message)
64+ .. function :: dgettext(domain, message, / )
6565
6666 Like :func: `.gettext `, but look the message up in the specified *domain *.
6767
6868
69- .. function :: ngettext(singular, plural, n)
69+ .. function :: ngettext(singular, plural, n, / )
7070
7171 Like :func: `.gettext `, but consider plural forms. If a translation is found,
7272 apply the plural formula to *n *, and return the resulting message (some
@@ -81,15 +81,15 @@ class-based API instead.
8181 formulas for a variety of languages.
8282
8383
84- .. function :: dngettext(domain, singular, plural, n)
84+ .. function :: dngettext(domain, singular, plural, n, / )
8585
8686 Like :func: `ngettext `, but look the message up in the specified *domain *.
8787
8888
89- .. function :: pgettext(context, message)
90- .. function :: dpgettext(domain, context, message)
91- .. function :: npgettext(context, singular, plural, n)
92- .. function :: dnpgettext(domain, context, singular, plural, n)
89+ .. function :: pgettext(context, message, / )
90+ .. function :: dpgettext(domain, context, message, / )
91+ .. function :: npgettext(context, singular, plural, n, / )
92+ .. function :: dnpgettext(domain, context, singular, plural, n, / )
9393
9494 Similar to the corresponding functions without the ``p `` in the prefix (that
9595 is, :func: `gettext `, :func: `dgettext `, :func: `ngettext `, :func: `dngettext `),
@@ -226,28 +226,28 @@ are the methods of :class:`!NullTranslations`:
226226 translation for a given message.
227227
228228
229- .. method :: gettext(message)
229+ .. method :: gettext(message, / )
230230
231231 If a fallback has been set, forward :meth: `!gettext ` to the fallback.
232232 Otherwise, return *message *. Overridden in derived classes.
233233
234234
235- .. method :: ngettext(singular, plural, n)
235+ .. method :: ngettext(singular, plural, n, / )
236236
237237 If a fallback has been set, forward :meth: `!ngettext ` to the fallback.
238238 Otherwise, return *singular * if *n * is 1; return *plural * otherwise.
239239 Overridden in derived classes.
240240
241241
242- .. method :: pgettext(context, message)
242+ .. method :: pgettext(context, message, / )
243243
244244 If a fallback has been set, forward :meth: `pgettext ` to the fallback.
245245 Otherwise, return the translated message. Overridden in derived classes.
246246
247247 .. versionadded :: 3.8
248248
249249
250- .. method :: npgettext(context, singular, plural, n)
250+ .. method :: npgettext(context, singular, plural, n, / )
251251
252252 If a fallback has been set, forward :meth: `npgettext ` to the fallback.
253253 Otherwise, return the translated message. Overridden in derived classes.
@@ -325,7 +325,7 @@ unexpected, or if other problems occur while reading the file, instantiating a
325325
326326 The following methods are overridden from the base class implementation:
327327
328- .. method :: gettext(message)
328+ .. method :: gettext(message, / )
329329
330330 Look up the *message * id in the catalog and return the corresponding message
331331 string, as a Unicode string. If there is no entry in the catalog for the
@@ -334,7 +334,7 @@ unexpected, or if other problems occur while reading the file, instantiating a
334334 *message * id is returned.
335335
336336
337- .. method :: ngettext(singular, plural, n)
337+ .. method :: ngettext(singular, plural, n, / )
338338
339339 Do a plural-forms lookup of a message id. *singular * is used as the message id
340340 for purposes of lookup in the catalog, while *n * is used to determine which
@@ -355,7 +355,7 @@ unexpected, or if other problems occur while reading the file, instantiating a
355355 n) % {'num': n}
356356
357357
358- .. method :: pgettext(context, message)
358+ .. method :: pgettext(context, message, / )
359359
360360 Look up the *context * and *message * id in the catalog and return the
361361 corresponding message string, as a Unicode string. If there is no
@@ -366,7 +366,7 @@ unexpected, or if other problems occur while reading the file, instantiating a
366366 .. versionadded :: 3.8
367367
368368
369- .. method :: npgettext(context, singular, plural, n)
369+ .. method :: npgettext(context, singular, plural, n, / )
370370
371371 Do a plural-forms lookup of a message id. *singular * is used as the
372372 message id for purposes of lookup in the catalog, while *n * is used to
0 commit comments