File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -232,8 +232,7 @@ pub(crate) fn infer_to_python_known(
232232 }
233233 ObType :: Complex => {
234234 let v = value. downcast :: < PyComplex > ( ) ?;
235- let complex_str = type_serializers:: complex:: complex_to_str ( v) ;
236- complex_str. into_py ( py)
235+ v. into_py ( py)
237236 }
238237 ObType :: Path => value. str ( ) ?. into_py ( py) ,
239238 ObType :: Pattern => value. getattr ( intern ! ( py, "pattern" ) ) ?. into_py ( py) ,
@@ -285,8 +284,7 @@ pub(crate) fn infer_to_python_known(
285284 }
286285 ObType :: Complex => {
287286 let v = value. downcast :: < PyComplex > ( ) ?;
288- let complex_str = type_serializers:: complex:: complex_to_str ( v) ;
289- complex_str. into_py ( py)
287+ v. into_py ( py)
290288 }
291289 ObType :: Unknown => {
292290 if let Some ( fallback) = extra. fallback {
You can’t perform that action at this time.
0 commit comments