Skip to content

Commit be632d3

Browse files
Update repr.py
1 parent f2c4cc7 commit be632d3

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

aeon/utils/repr.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@
55
from aeon.testing.utils.deep_equals import deep_equals
66

77

8-
def unchanged_and_required_params(obj):
8+
def get_unchanged_and_required_params_as_str(obj):
99
"""
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.
1115
1216
Parameters
1317
----------
@@ -17,7 +21,7 @@ def unchanged_and_required_params(obj):
1721
Returns
1822
-------
1923
str
20-
A string representation of the parameters.
24+
A string representation of the objects parameters and values.
2125
"""
2226
cls = obj.__class__
2327
signature = inspect.signature(cls.__init__)

0 commit comments

Comments
 (0)