refactor: 确认ErrorCode可以继承str,恢复原来设计
This commit is contained in:
committed by
DrSmoothl
parent
84a6524bd9
commit
ca6fd96d4c
@@ -7,7 +7,7 @@ from enum import Enum
|
|||||||
from typing import Any, Dict, Optional
|
from typing import Any, Dict, Optional
|
||||||
|
|
||||||
|
|
||||||
class ErrorCode(Enum):
|
class ErrorCode(str, Enum):
|
||||||
"""RPC 错误码枚举"""
|
"""RPC 错误码枚举"""
|
||||||
|
|
||||||
# 通用
|
# 通用
|
||||||
|
|||||||
Reference in New Issue
Block a user