File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4072,15 +4072,15 @@ class KeyValuePair(object):
4072
4072
Key-value pairs detected across cell boundaries.
4073
4073
4074
4074
:attr Key key: (optional) A key in a key-value pair.
4075
- :attr Value value: (optional) A value in a key-value pair.
4075
+ :attr list[ Value] value: (optional) A list of values in a key-value pair.
4076
4076
"""
4077
4077
4078
4078
def __init__ (self , key = None , value = None ):
4079
4079
"""
4080
4080
Initialize a KeyValuePair object.
4081
4081
4082
4082
:param Key key: (optional) A key in a key-value pair.
4083
- :param Value value: (optional) A value in a key-value pair.
4083
+ :param list[ Value] value: (optional) A list of values in a key-value pair.
4084
4084
"""
4085
4085
self .key = key
4086
4086
self .value = value
@@ -4098,7 +4098,7 @@ def _from_dict(cls, _dict):
4098
4098
if 'key' in _dict :
4099
4099
args ['key' ] = Key ._from_dict (_dict .get ('key' ))
4100
4100
if 'value' in _dict :
4101
- args ['value' ] = Value ._from_dict (_dict .get ('value' ))
4101
+ args ['value' ] = [ Value ._from_dict (x ) for x in ( _dict .get ('value' ))]
4102
4102
return cls (** args )
4103
4103
4104
4104
def _to_dict (self ):
@@ -4107,7 +4107,7 @@ def _to_dict(self):
4107
4107
if hasattr (self , 'key' ) and self .key is not None :
4108
4108
_dict ['key' ] = self .key ._to_dict ()
4109
4109
if hasattr (self , 'value' ) and self .value is not None :
4110
- _dict ['value' ] = self . value . _to_dict ()
4110
+ _dict ['value' ] = [ x . _to_dict () for x in self . value ]
4111
4111
return _dict
4112
4112
4113
4113
def __str__ (self ):
You can’t perform that action at this time.
0 commit comments