File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -383,22 +383,22 @@ def format_data_with_schema(
383383 else :
384384
385385 def format_number (x ):
386- if isinstance (x , bool ):
386+ if isinstance (x , bool | str ):
387387 raise TypeError (f"{ x } is not supported type { schema } " )
388388 return str (x )
389389
390390 def format_double (x ):
391- if isinstance (x , bool ):
391+ if isinstance (x , bool | str ):
392392 raise TypeError (f"{ x } is not supported type { schema } " )
393393 return float (x )
394394
395395 def format_int (x ):
396- if isinstance (x , str ):
396+ if isinstance (x , bool | str ):
397397 raise TypeError (f"{ x } is not supported type { schema } " )
398398 return str (x )
399399
400400 def format_int64 (x ):
401- if isinstance (x , str ):
401+ if isinstance (x , bool | str ):
402402 raise TypeError (f"{ x } is not supported type { schema } " )
403403 return str (x ) + "L"
404404
You can’t perform that action at this time.
0 commit comments