refactor: 确认ErrorCode可以继承str,恢复原来设计

This commit is contained in:
UnCLAS-Prommer
2026-03-17 21:39:06 +08:00
committed by DrSmoothl
parent 84a6524bd9
commit ca6fd96d4c

View File

@@ -7,7 +7,7 @@ from enum import Enum
from typing import Any, Dict, Optional
class ErrorCode(Enum):
class ErrorCode(str, Enum):
"""RPC 错误码枚举"""
# 通用