@@ -25,7 +25,7 @@ def split(value: str, separator: str = ",", step: int = 1) -> List[str]:
2525def delimited_loads (
2626 explode : bool ,
2727 name : str ,
28- schema_type : str ,
28+ schema_type : str | list [ str ] ,
2929 location : Mapping [str , Any ],
3030 delimiter : str ,
3131) -> Any :
@@ -46,7 +46,7 @@ def delimited_loads(
4646
4747
4848def matrix_loads (
49- explode : bool , name : str , schema_type : str , location : Mapping [str , Any ]
49+ explode : bool , name : str , schema_type : str | list [ str ] , location : Mapping [str , Any ]
5050) -> Any :
5151 if explode == False :
5252 m = re .match (rf"^;{ name } =(.*)$" , location [f";{ name } " ])
@@ -83,7 +83,7 @@ def matrix_loads(
8383
8484
8585def label_loads (
86- explode : bool , name : str , schema_type : str , location : Mapping [str , Any ]
86+ explode : bool , name : str , schema_type : str | list [ str ] , location : Mapping [str , Any ]
8787) -> Any :
8888 if explode == False :
8989 value = location [f".{ name } " ]
@@ -113,7 +113,7 @@ def label_loads(
113113
114114
115115def form_loads (
116- explode : bool , name : str , schema_type : str , location : Mapping [str , Any ]
116+ explode : bool , name : str , schema_type : str | list [ str ] , location : Mapping [str , Any ]
117117) -> Any :
118118 explode_type = (explode , schema_type )
119119 # color=blue,black,brown
@@ -144,7 +144,7 @@ def form_loads(
144144
145145
146146def simple_loads (
147- explode : bool , name : str , schema_type : str , location : Mapping [str , Any ]
147+ explode : bool , name : str , schema_type : str | list [ str ] , location : Mapping [str , Any ]
148148) -> Any :
149149 value = location [name ]
150150
@@ -167,21 +167,21 @@ def simple_loads(
167167
168168
169169def space_delimited_loads (
170- explode : bool , name : str , schema_type : str , location : Mapping [str , Any ]
170+ explode : bool , name : str , schema_type : str | list [ str ] , location : Mapping [str , Any ]
171171) -> Any :
172172 return delimited_loads (
173173 explode , name , schema_type , location , delimiter = "%20"
174174 )
175175
176176
177177def pipe_delimited_loads (
178- explode : bool , name : str , schema_type : str , location : Mapping [str , Any ]
178+ explode : bool , name : str , schema_type : str | list [ str ] , location : Mapping [str , Any ]
179179) -> Any :
180180 return delimited_loads (explode , name , schema_type , location , delimiter = "|" )
181181
182182
183183def deep_object_loads (
184- explode : bool , name : str , schema_type : str , location : Mapping [str , Any ]
184+ explode : bool , name : str , schema_type : str | list [ str ] , location : Mapping [str , Any ]
185185) -> Any :
186186 explode_type = (explode , schema_type )
187187
0 commit comments