diff --git a/num2words/lang_BY.py b/num2words/lang_BY.py index f0ace74e..ec825fd0 100644 --- a/num2words/lang_BY.py +++ b/num2words/lang_BY.py @@ -240,7 +240,6 @@ def to_ordinal(self, number, gender="m"): if lastword[-1] == "ч": lastword = lastword + "ны" - elif lastword[-1] == "н" or lastword[-2] == "н": lastword = lastword[: lastword.rfind("н") + 1] + "ны" elif lastword[-1] == "д" or lastword[-2] == "д": diff --git a/tox.ini b/tox.ini index 71beb41b..8e334bcf 100644 --- a/tox.ini +++ b/tox.ini @@ -6,7 +6,7 @@ python = 3.7: py37 3.8: py38 3.9: py39 - 3.10: py310 + 3.10: isort, flake8, py310 3.11: py311