mirror of https://github.com/mtshiba/pylyzer
Update convert.rs
This commit is contained in:
parent
18af09b5e4
commit
e899546687
|
|
@ -1500,12 +1500,7 @@ impl ASTConverter {
|
||||||
.find(|¶m| param.inspect() == Some(attr.ident.inspect()))
|
.find(|¶m| param.inspect() == Some(attr.ident.inspect()))
|
||||||
.and_then(|param| param.sig.t_spec.as_ref())
|
.and_then(|param| param.sig.t_spec.as_ref())
|
||||||
}) {
|
}) {
|
||||||
let typ_name = t_spec_op.t_spec.to_string().replace('.', "");
|
*t_spec_op.t_spec_as_expr.clone()
|
||||||
Expr::from(Accessor::Ident(Identifier::public_with_line(
|
|
||||||
DOT,
|
|
||||||
typ_name.into(),
|
|
||||||
attr.obj.ln_begin().unwrap_or(0),
|
|
||||||
)))
|
|
||||||
} else if let Some(typ) = redef.t_spec.map(|t_spec| t_spec.t_spec_as_expr) {
|
} else if let Some(typ) = redef.t_spec.map(|t_spec| t_spec.t_spec_as_expr) {
|
||||||
*typ
|
*typ
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue