Skip to content

Commit

Permalink
upgrade mypy version
Browse files Browse the repository at this point in the history
  • Loading branch information
gruebel committed Oct 8, 2022
1 parent 1bba2a8 commit 054749e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ repos:
- id: flake8
additional_dependencies: [flake8-bugbear,flake8-annotations]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v0.950'
rev: v0.982
hooks:
- id: mypy
additional_dependencies: [types-python-dateutil]
1 change: 1 addition & 0 deletions arrow/locales.py
Original file line number Diff line number Diff line change
Expand Up @@ -4121,6 +4121,7 @@ def _ordinal_number(self, n: int) -> str:
return f"{n}র্থ"
if n == 6:
return f"{n}ষ্ঠ"
return ""


class RomanshLocale(Locale):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_locales.py
Original file line number Diff line number Diff line change
Expand Up @@ -1394,7 +1394,7 @@ def test_ordinal_number(self):
assert self.locale._ordinal_number(10) == "10ম"
assert self.locale._ordinal_number(11) == "11তম"
assert self.locale._ordinal_number(42) == "42তম"
assert self.locale._ordinal_number(-1) is None
assert self.locale._ordinal_number(-1) == ""


@pytest.mark.usefixtures("lang_locale")
Expand Down

0 comments on commit 054749e

Please sign in to comment.