fix: use (str, Enum)
This commit is contained in:
		
							parent
							
								
									e4027ad908
								
							
						
					
					
						commit
						63f154c540
					
				|  | @ -1,5 +1,5 @@ | ||||||
| from datetime import datetime, timedelta | from datetime import datetime, timedelta | ||||||
| from enum import StrEnum | from enum import Enum | ||||||
| from pathlib import Path | from pathlib import Path | ||||||
| from typing import Any, Dict, List, Type | from typing import Any, Dict, List, Type | ||||||
| 
 | 
 | ||||||
|  | @ -81,7 +81,7 @@ class Limit(BaseModel): | ||||||
|         raise ValueError("Must be a string") |         raise ValueError("Must be a string") | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class Parser(StrEnum): | class Parser(str, Enum): | ||||||
|     CLANG_TIDY = "clangtidy" |     CLANG_TIDY = "clangtidy" | ||||||
|     CPPCHECK = "cppcheck" |     CPPCHECK = "cppcheck" | ||||||
|     CPPLINT = "cpplint" |     CPPLINT = "cpplint" | ||||||
|  |  | ||||||
|  | @ -11,10 +11,10 @@ dependencies = [ | ||||||
|     "loguru>=0.7.2", |     "loguru>=0.7.2", | ||||||
|     "pydantic>=2.9.2", |     "pydantic>=2.9.2", | ||||||
|     "inquirer>=3.4.0", |     "inquirer>=3.4.0", | ||||||
|     "rtoml>=0.12.0", |     "rtoml>=0.11.0", | ||||||
|     "humanfriendly>=10.0", |     "humanfriendly>=10.0", | ||||||
| ] | ] | ||||||
| requires-python = ">=3.11" | requires-python = ">=3.9" | ||||||
| authors = [{ name = "JOJ3-dev", email = "joj3@focs.ji.sjtu.edu.cn" }] | authors = [{ name = "JOJ3-dev", email = "joj3@focs.ji.sjtu.edu.cn" }] | ||||||
| maintainers = [] | maintainers = [] | ||||||
| description = "JOJ3 json configuration file generator" | description = "JOJ3 json configuration file generator" | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user