File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -968,7 +968,7 @@ def get_value(
968
968
def apply_splits (obj , depth ):
969
969
if depth < 1 :
970
970
return obj
971
- return StateArray (apply_splits (i , depth - 1 ) for i in obj )
971
+ return StateArray [ self . type ] (apply_splits (i , depth - 1 ) for i in obj )
972
972
973
973
value = apply_splits (value , split_depth )
974
974
value = self ._apply_cast (value )
@@ -1012,7 +1012,7 @@ def get_nested_results(res, depth: int):
1012
1012
if not depth :
1013
1013
val = [r .get_output_field (self .field ) for r in res ]
1014
1014
else :
1015
- val = StateArray (
1015
+ val = StateArray [ self . type ] (
1016
1016
get_nested_results (res = r , depth = depth - 1 ) for r in res
1017
1017
)
1018
1018
else :
@@ -1024,7 +1024,7 @@ def get_nested_results(res, depth: int):
1024
1024
val = res .get_output_field (self .field )
1025
1025
if depth and not wf ._pre_split :
1026
1026
assert isinstance (val , ty .Sequence ) and not isinstance (val , str )
1027
- val = StateArray (val )
1027
+ val = StateArray [ self . type ] (val )
1028
1028
return val
1029
1029
1030
1030
value = get_nested_results (result , depth = split_depth )
You can’t perform that action at this time.
0 commit comments