@@ -508,7 +508,7 @@ def __init__(
508508 # there is no need to refeed the default value.
509509 assert not refeed
510510 else :
511- c .value = value
511+ c .data = value
512512 c .required = required
513513 c .implicit = input .implicit
514514 # this is a count of how many times the input has been
@@ -531,7 +531,7 @@ def __init__(
531531 self .inv_finder = inv_finder
532532
533533 # this class is important in overriding the square-bracket notation:
534- # fn.value [x]
534+ # fn.data [x]
535535 # self reference is available via the closure on the class
536536 class ValueAttribute :
537537 def __getitem__ (self , item ):
@@ -546,7 +546,7 @@ def __getitem__(self, item):
546546 "for duplicates."
547547 )
548548 if isinstance (s , Container ):
549- return s .value
549+ return s .data
550550 else :
551551 raise NotImplementedError
552552
@@ -564,7 +564,7 @@ def __setitem__(self, item, value):
564564 "for duplicates."
565565 )
566566 if isinstance (s , Container ):
567- s .value = value
567+ s .data = value
568568 s .provided += 1
569569 else :
570570 s (value )
@@ -1624,11 +1624,11 @@ def __init__(
16241624 self .name = name
16251625 self .trust_input = trust_input
16261626
1627- self .required = [(i .value is None ) for i in self .inputs ]
1627+ self .required = [(i .data is None ) for i in self .inputs ]
16281628 self .refeed = [
16291629 (
1630- i .value is not None
1631- and not isinstance (i .value , Container )
1630+ i .data is not None
1631+ and not isinstance (i .data , Container )
16321632 and i .update is None
16331633 )
16341634 for i in self .inputs
@@ -1898,10 +1898,10 @@ def convert_function_input(input):
18981898 if len (input ) == 1 :
18991899 return input [0 ]
19001900 elif len (input ) == 2 :
1901- input , value = input
1901+ input , data = input
19021902 if name is not None :
19031903 input .name = name
1904- input .value = value
1904+ input .data = data
19051905 return input
19061906 else :
19071907 raise TypeError (f"The input specification is not valid: { input } " )
0 commit comments