[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](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.3...v0.8.4)
- [github.com/pre-commit/mirrors-mypy: v1.13.0 → v1.14.0](https://github.com/pre-commit/mirrors-mypy/compare/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>
This commit is contained in:
pre-commit-ci[bot] 2024-12-29 18:16:45 +01:00 committed by GitHub
parent bfc804a41c
commit c93288389d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 6 deletions

View File

@ -16,7 +16,7 @@ repos:
- id: auto-walrus - id: auto-walrus
- repo: https://github.com/astral-sh/ruff-pre-commit - repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.3 rev: v0.8.4
hooks: hooks:
- id: ruff - id: ruff
- id: ruff-format - id: ruff-format
@ -47,7 +47,7 @@ repos:
- id: validate-pyproject - id: validate-pyproject
- repo: https://github.com/pre-commit/mirrors-mypy - repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.0 rev: v1.14.0
hooks: hooks:
- id: mypy - id: mypy
args: args:

View File

@ -1,5 +1,5 @@
from enum import Enum from enum import Enum
from typing import ClassVar, Literal from typing import Literal
class NumberingSystem(Enum): class NumberingSystem(Enum):
@ -54,7 +54,7 @@ class NumberingSystem(Enum):
class NumberWords(Enum): class NumberWords(Enum):
ONES: ClassVar[dict[int, str]] = { ONES = { # noqa: RUF012
0: "", 0: "",
1: "one", 1: "one",
2: "two", 2: "two",
@ -67,7 +67,7 @@ class NumberWords(Enum):
9: "nine", 9: "nine",
} }
TEENS: ClassVar[dict[int, str]] = { TEENS = { # noqa: RUF012
0: "ten", 0: "ten",
1: "eleven", 1: "eleven",
2: "twelve", 2: "twelve",
@ -80,7 +80,7 @@ class NumberWords(Enum):
9: "nineteen", 9: "nineteen",
} }
TENS: ClassVar[dict[int, str]] = { TENS = { # noqa: RUF012
2: "twenty", 2: "twenty",
3: "thirty", 3: "thirty",
4: "forty", 4: "forty",