File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 5
5
from aeon .testing .utils .deep_equals import deep_equals
6
6
7
7
8
- def unchanged_and_required_params (obj ):
8
+ def get_unchanged_and_required_params_as_str (obj ):
9
9
"""
10
- Get parameters of a object that are either required or unchanged.
10
+ Get object parameters as a comma delimited string.
11
+
12
+ Collects the parameters of an object that are either required
13
+ (no default) or different from the __init__ default value. Returns
14
+ the parameter names and values as a comma delimited string.
11
15
12
16
Parameters
13
17
----------
@@ -17,7 +21,7 @@ def unchanged_and_required_params(obj):
17
21
Returns
18
22
-------
19
23
str
20
- A string representation of the parameters.
24
+ A string representation of the objects parameters and values .
21
25
"""
22
26
cls = obj .__class__
23
27
signature = inspect .signature (cls .__init__ )
You can’t perform that action at this time.
0 commit comments