Skip to content

Commit 868efc8

Browse files
committed
Fix lint
1 parent bc58caa commit 868efc8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

labelbox/data/mixins.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ class CustomMetricsMixin(BaseModel):
5555
def dict(self, *args, **kwargs):
5656
res = super().dict(*args, **kwargs)
5757

58+
if "customMetrics" in res and res["customMetrics"] is None:
59+
res.pop("customMetrics")
60+
5861
if "custom_metrics" in res and res["custom_metrics"] is None:
5962
res.pop("custom_metrics")
6063

0 commit comments

Comments
 (0)