@@ -113,26 +113,26 @@ fn value_from_py_object<'py>(
113113
114114#[ pyclass( name = "OpArgSchema" ) ]
115115pub struct PyOpArgSchema {
116- value_type : crate :: py:: Json < schema:: EnrichedValueType > ,
117- analyzed_value : crate :: py:: Json < plan:: AnalyzedValueMapping > ,
116+ value_type : crate :: py:: Pythonized < schema:: EnrichedValueType > ,
117+ analyzed_value : crate :: py:: Pythonized < plan:: AnalyzedValueMapping > ,
118118}
119119
120120#[ pymethods]
121121impl PyOpArgSchema {
122122 #[ getter]
123- fn value_type ( & self ) -> & crate :: py:: Json < schema:: EnrichedValueType > {
123+ fn value_type ( & self ) -> & crate :: py:: Pythonized < schema:: EnrichedValueType > {
124124 & self . value_type
125125 }
126126
127127 #[ getter]
128- fn analyzed_value ( & self ) -> & crate :: py:: Json < plan:: AnalyzedValueMapping > {
128+ fn analyzed_value ( & self ) -> & crate :: py:: Pythonized < plan:: AnalyzedValueMapping > {
129129 & self . analyzed_value
130130 }
131131
132132 fn validate_arg (
133133 & self ,
134134 name : & str ,
135- typ : crate :: py:: Json < schema:: EnrichedValueType > ,
135+ typ : crate :: py:: Pythonized < schema:: EnrichedValueType > ,
136136 ) -> PyResult < ( ) > {
137137 if self . value_type . 0 . typ != typ. 0 . typ {
138138 return Err ( PyException :: new_err ( format ! (
@@ -222,13 +222,13 @@ impl SimpleFunctionFactory for PyFunctionFactory {
222222 ) > {
223223 let ( result_type, executor, kw_args_names, num_positional_args) =
224224 Python :: with_gil ( |py| -> anyhow:: Result < _ > {
225- let mut args = vec ! [ crate :: py:: Json ( spec) . into_py_any( py) ?] ;
225+ let mut args = vec ! [ crate :: py:: Pythonized ( spec) . into_py_any( py) ?] ;
226226 let mut kwargs = vec ! [ ] ;
227227 let mut num_positional_args = 0 ;
228228 for arg in input_schema. into_iter ( ) {
229229 let py_arg_schema = PyOpArgSchema {
230- value_type : crate :: py:: Json ( arg. value_type . clone ( ) ) ,
231- analyzed_value : crate :: py:: Json ( arg. analyzed_value . clone ( ) ) ,
230+ value_type : crate :: py:: Pythonized ( arg. value_type . clone ( ) ) ,
231+ analyzed_value : crate :: py:: Pythonized ( arg. analyzed_value . clone ( ) ) ,
232232 } ;
233233 match arg. name . 0 {
234234 Some ( name) => {
@@ -251,7 +251,7 @@ impl SimpleFunctionFactory for PyFunctionFactory {
251251 Some ( & kwargs. into_py_dict ( py) ?) ,
252252 ) ?;
253253 let ( result_type, executor) = result
254- . extract :: < ( crate :: py:: Json < schema:: EnrichedValueType > , Py < PyAny > ) > ( py) ?;
254+ . extract :: < ( crate :: py:: Pythonized < schema:: EnrichedValueType > , Py < PyAny > ) > ( py) ?;
255255 Ok ( (
256256 result_type. into_inner ( ) ,
257257 executor,
0 commit comments