From 782cd5dfc8b3589b33818af956fd4041b96bfea0 Mon Sep 17 00:00:00 2001 From: allegroai Date: Sun, 5 Jun 2022 16:11:55 +0300 Subject: [PATCH] pep8 --- clearml_serving/serving/endpoints.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/clearml_serving/serving/endpoints.py b/clearml_serving/serving/endpoints.py index 67eaa61..cb7a565 100644 --- a/clearml_serving/serving/endpoints.py +++ b/clearml_serving/serving/endpoints.py @@ -83,8 +83,12 @@ class EndpointMetricLogging(BaseStruct): metrics = attrib( type=dict, default={}, - converter=lambda x: {k: v if isinstance(v, EndpointMetricLogging.MetricType) - else EndpointMetricLogging.MetricType(**v) for k, v in x.items()}) # key=variable, value=MetricType) + converter=lambda x: { + k: v if isinstance(v, EndpointMetricLogging.MetricType) + else EndpointMetricLogging.MetricType(**v) for k, v in x.items() + } + ) # key=variable, value=MetricType + # example: # {"x1": dict(type="scalar", buckets=[0,1,2,3]), # "y": dict(type="enum", buckets=["cat", "dog"]).