Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c932883

Browse files
pre-commit-ci[bot]cclauss
andauthored
[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 <cclauss@me.com>
1 parent bfc804a commit c932883

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

‎.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
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:

‎conversions/convert_number_to_words.py

Lines changed: 4 additions & 4 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /