diff --git a/swankit/callback/models/__init__.py b/swankit/callback/models/__init__.py index 7ff7f99..6a26ada 100644 --- a/swankit/callback/models/__init__.py +++ b/swankit/callback/models/__init__.py @@ -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", +] diff --git a/swankit/callback/models/key.py b/swankit/callback/models/key.py index 01be7cd..7a8d619 100644 --- a/swankit/callback/models/key.py +++ b/swankit/callback/models/key.py @@ -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): """ 错误的指标信息,简化输入参数