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(
232
232
}
233
233
ObType :: Complex => {
234
234
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)
237
236
}
238
237
ObType :: Path => value. str ( ) ?. into_py ( py) ,
239
238
ObType :: Pattern => value. getattr ( intern ! ( py, "pattern" ) ) ?. into_py ( py) ,
@@ -285,8 +284,7 @@ pub(crate) fn infer_to_python_known(
285
284
}
286
285
ObType :: Complex => {
287
286
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)
290
288
}
291
289
ObType :: Unknown => {
292
290
if let Some ( fallback) = extra. fallback {
You can’t perform that action at this time.
0 commit comments