mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-18 00:07:00 +00:00
[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:
parent
bfc804a41c
commit
c93288389d
|
@ -16,7 +16,7 @@ repos:
|
|||
- id: auto-walrus
|
||||
|
||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
rev: v0.8.3
|
||||
rev: v0.8.4
|
||||
hooks:
|
||||
- id: ruff
|
||||
- id: ruff-format
|
||||
|
@ -47,7 +47,7 @@ repos:
|
|||
- id: validate-pyproject
|
||||
|
||||
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||
rev: v1.13.0
|
||||
rev: v1.14.0
|
||||
hooks:
|
||||
- id: mypy
|
||||
args:
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
from enum import Enum
|
||||
from typing import ClassVar, Literal
|
||||
from typing import Literal
|
||||
|
||||
|
||||
class NumberingSystem(Enum):
|
||||
|
@ -54,7 +54,7 @@ class NumberingSystem(Enum):
|
|||
|
||||
|
||||
class NumberWords(Enum):
|
||||
ONES: ClassVar[dict[int, str]] = {
|
||||
ONES = { # noqa: RUF012
|
||||
0: "",
|
||||
1: "one",
|
||||
2: "two",
|
||||
|
@ -67,7 +67,7 @@ class NumberWords(Enum):
|
|||
9: "nine",
|
||||
}
|
||||
|
||||
TEENS: ClassVar[dict[int, str]] = {
|
||||
TEENS = { # noqa: RUF012
|
||||
0: "ten",
|
||||
1: "eleven",
|
||||
2: "twelve",
|
||||
|
@ -80,7 +80,7 @@ class NumberWords(Enum):
|
|||
9: "nineteen",
|
||||
}
|
||||
|
||||
TENS: ClassVar[dict[int, str]] = {
|
||||
TENS = { # noqa: RUF012
|
||||
2: "twenty",
|
||||
3: "thirty",
|
||||
4: "forty",
|
||||
|
|
Loading…
Reference in New Issue
Block a user