Skip to content

Commit 39981e9

Browse files
author
arnaudde
committed
Rename from_parts to from_params and fix return types
1 parent 0f883c5 commit 39981e9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

dataikuapi/dss/ml.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -712,12 +712,12 @@ def __init__(self, data):
712712
self._internal_dict = data
713713

714714
@staticmethod
715-
def from_parts(name, a_filter, condition):
715+
def from_params(name, a_filter, condition):
716716
"""
717717
Creates assertion parameters from name, filter and condition
718718
719719
:param str name: Name of the assertion
720-
:param object a_filter: A :class:`~dataikuapi.dss.utils.DSSFilter` to select assertion population
720+
:param object a_filter: A dict representing the filter to select assertion population
721721
:param object condition: A :class:`~dataikuapi.dss.ml.DSSMLAssertionCondition` for the assertion to be successful
722722
723723
:rtype: :class:`dataikuapi.dss.ml.DSSMLAssertionParams`
@@ -751,7 +751,7 @@ def name(self, name):
751751
def filter(self):
752752
"""
753753
Returns the assertion filter
754-
:rtype: :class:`dataikuapi.dss.utils.DSSFilter`
754+
:rtype: dict
755755
"""
756756
return self._internal_dict["filter"]
757757

0 commit comments

Comments
 (0)