fix: use (str, Enum)
All checks were successful
build / build (pull_request) Successful in 2m27s
build / build (push) Successful in 2m29s

This commit is contained in:
李衍志523370910113 2025-03-05 13:37:17 +08:00
parent e4027ad908
commit 63f154c540
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
from datetime import datetime, timedelta
from enum import StrEnum
from enum import Enum
from pathlib import Path
from typing import Any, Dict, List, Type
@ -81,7 +81,7 @@ class Limit(BaseModel):
raise ValueError("Must be a string")
class Parser(StrEnum):
class Parser(str, Enum):
CLANG_TIDY = "clangtidy"
CPPCHECK = "cppcheck"
CPPLINT = "cpplint"

View File

@ -11,10 +11,10 @@ dependencies = [
"loguru>=0.7.2",
"pydantic>=2.9.2",
"inquirer>=3.4.0",
"rtoml>=0.12.0",
"rtoml>=0.11.0",
"humanfriendly>=10.0",
]
requires-python = ">=3.11"
requires-python = ">=3.9"
authors = [{ name = "JOJ3-dev", email = "joj3@focs.ji.sjtu.edu.cn" }]
maintainers = []
description = "JOJ3 json configuration file generator"