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 @@ -86,7 +86,7 @@ def _unpack_union_child(
8686 # try to find one matching type
8787 for base_type in child .base_types :
8888 try :
89- return load (base_type , value )
89+ return load (base_type , value , options = options )
9090 except ValueError as e :
9191 exceptions .append (e )
9292
@@ -118,8 +118,8 @@ def _get_one_child_value(child: ChildInfo) -> Any:
118118 # nice path for default use-case
119119 base_type = child .base_types [0 ]
120120 if child .is_list :
121- return [load (base_type , v ) for v in value ]
122- return load (base_type , value )
121+ return [load (base_type , v , options = options ) for v in value ]
122+ return load (base_type , value , options = options )
123123
124124 if child .is_list :
125125 return [_unpack_union_child (child , v ) for v in value ]
You can’t perform that action at this time.
0 commit comments