Skip to content

Commit d2fda93

Browse files
committed
[property] Rename method to set_values_cardinality
1 parent d63dec6 commit d2fda93

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

odml/property.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -537,8 +537,8 @@ def val_cardinality(self, new_value):
537537
Only positive integers are supported. 'None' is used to denote
538538
no restrictions on a maximum or minimum.
539539
540-
:param new_value: Can be either 'None', a positive integer, which will set the maximum
541-
or an integer 2-tuple of the format '(min, max)'.
540+
:param new_value: Can be either 'None', a positive integer, which will set
541+
the maximum or an integer 2-tuple of the format '(min, max)'.
542542
"""
543543
invalid_input = False
544544

@@ -576,7 +576,7 @@ def val_cardinality(self, new_value):
576576
msg = "Can only assign single int or int-tuples of the format '(min, max)'"
577577
raise ValueError(msg)
578578

579-
def values_set_cardinality(self, min_val=None, max_val=None):
579+
def set_values_cardinality(self, min_val=None, max_val=None):
580580
"""
581581
Sets the values cardinality of a Property.
582582

0 commit comments

Comments
 (0)