A typical 'and' list for arbitrary placeholders.
eg. "January, February, and March"
* standard-short:
- A short version of a 'and' list, suitable for use with short or abbreviated placeholder values.
+ A short version of an 'and' list, suitable for use with short or abbreviated placeholder values.
eg. "Jan., Feb., and Mar."
* or:
A typical 'or' list for arbitrary placeholders.
def extract_operands(source: float | decimal.Decimal) -> tuple[decimal.Decimal | int, int, int, int, int, int, Literal[0], Literal[0]]:
"""Extract operands from a decimal, a float or an int, according to `CLDR rules`_.
- The result is a 8-tuple (n, i, v, w, f, t, c, e), where those symbols are as follows:
+ The result is an 8-tuple (n, i, v, w, f, t, c, e), where those symbols are as follows:
====== ===============================================================
Symbol Value
def _find_unit_pattern(unit_id: str, locale: Locale | str | None = LC_NUMERIC) -> str | None:
"""
- Expand an unit into a qualified form.
+ Expand a unit into a qualified form.
Known units can be found in the CLDR Unit Validity XML file:
https://unicode.org/repos/cldr/tags/latest/common/validity/unit.xml
/**
* A simple module that provides a gettext like translation interface.
- * The catalog passed to load() must be a object conforming to this
+ * The catalog passed to load() must be an object conforming to this
* interface::
*
* {
assert plurals.get_plural(locale) == (num_plurals, plural_expr)
-def test_get_plural_accpets_strings():
+def test_get_plural_accepts_strings():
assert plurals.get_plural(locale='ga') == (5, '(n==1 ? 0 : n==2 ? 1 : n>=3 && n<=6 ? 2 : n>=7 && n<=10 ? 3 : 4)')