Skip to content

Commit

Permalink
change:name
Browse files Browse the repository at this point in the history
  • Loading branch information
SAKURA-CAT committed Oct 20, 2024
1 parent dfd50fe commit 0369ae3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions swankit/callback/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,15 @@
@Description:
与回调函数通信时的模型
"""
from .key import MediaBuffer, MetricInfo, ColumnInfo
from .key import MediaBuffer, MetricInfo, ColumnInfo, MetricErrorInfo
from .error import OperateErrorInfo
from .runtime import RuntimeInfo

__all__ = ["MediaBuffer", "MetricInfo", "ColumnInfo", "OperateErrorInfo", "RuntimeInfo"]
__all__ = [
"ColumnInfo",
"MediaBuffer",
"MetricInfo",
"MetricErrorInfo",
"OperateErrorInfo",
"RuntimeInfo",
]
2 changes: 1 addition & 1 deletion swankit/callback/models/key.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def data(self) -> Union[Dict, None]:
return self.metric["data"]


class ErrorMetricInfo(MetricInfo):
class MetricErrorInfo(MetricInfo):
def __init__(self, column_info: ColumnInfo, error: ParseErrorInfo):
"""
错误的指标信息,简化输入参数
Expand Down

0 comments on commit 0369ae3

Please sign in to comment.