From e8995466875eae98babff42b174e4e6e07169043 Mon Sep 17 00:00:00 2001 From: Shunsuke Shibayama Date: Thu, 22 Aug 2024 14:39:52 +0900 Subject: [PATCH] Update convert.rs --- crates/py2erg/convert.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/crates/py2erg/convert.rs b/crates/py2erg/convert.rs index 83bda6d..e1e6bfc 100644 --- a/crates/py2erg/convert.rs +++ b/crates/py2erg/convert.rs @@ -1500,12 +1500,7 @@ impl ASTConverter { .find(|¶m| param.inspect() == Some(attr.ident.inspect())) .and_then(|param| param.sig.t_spec.as_ref()) }) { - let typ_name = t_spec_op.t_spec.to_string().replace('.', ""); - Expr::from(Accessor::Ident(Identifier::public_with_line( - DOT, - typ_name.into(), - attr.obj.ln_begin().unwrap_or(0), - ))) + *t_spec_op.t_spec_as_expr.clone() } else if let Some(typ) = redef.t_spec.map(|t_spec| t_spec.t_spec_as_expr) { *typ } else {