Skip to content

Commit c932883

Browse files
[pre-commit.ci] pre-commit autoupdate (#12466)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.8.3 → v0.8.4](astral-sh/ruff-pre-commit@v0.8.3...v0.8.4) - [github.com/pre-commit/mirrors-mypy: v1.13.0 → v1.14.0](pre-commit/mirrors-mypy@v1.13.0...v1.14.0) * Update convert_number_to_words.py * Update convert_number_to_words.py --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Christian Clauss <[email protected]>
1 parent bfc804a commit c932883

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Diff for: .pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ repos:
1616
- id: auto-walrus
1717

1818
- repo: https://github.com/astral-sh/ruff-pre-commit
19-
rev: v0.8.3
19+
rev: v0.8.4
2020
hooks:
2121
- id: ruff
2222
- id: ruff-format
@@ -47,7 +47,7 @@ repos:
4747
- id: validate-pyproject
4848

4949
- repo: https://github.com/pre-commit/mirrors-mypy
50-
rev: v1.13.0
50+
rev: v1.14.0
5151
hooks:
5252
- id: mypy
5353
args:

Diff for: conversions/convert_number_to_words.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from enum import Enum
2-
from typing import ClassVar, Literal
2+
from typing import Literal
33

44

55
class NumberingSystem(Enum):
@@ -54,7 +54,7 @@ def max_value(cls, system: str) -> int:
5454

5555

5656
class NumberWords(Enum):
57-
ONES: ClassVar[dict[int, str]] = {
57+
ONES = { # noqa: RUF012
5858
0: "",
5959
1: "one",
6060
2: "two",
@@ -67,7 +67,7 @@ class NumberWords(Enum):
6767
9: "nine",
6868
}
6969

70-
TEENS: ClassVar[dict[int, str]] = {
70+
TEENS = { # noqa: RUF012
7171
0: "ten",
7272
1: "eleven",
7373
2: "twelve",
@@ -80,7 +80,7 @@ class NumberWords(Enum):
8080
9: "nineteen",
8181
}
8282

83-
TENS: ClassVar[dict[int, str]] = {
83+
TENS = { # noqa: RUF012
8484
2: "twenty",
8585
3: "thirty",
8686
4: "forty",

0 commit comments

Comments
 (0)