Compare commits
2 Commits
af5672020e
...
815176c8c7
Author | SHA1 | Date |
---|---|---|
z78078 | 815176c8c7 | |
z78078 | 067da378c6 |
|
@ -556,9 +556,7 @@ impl InnerResolver {
|
||||||
if let TopLevelDef::Class {
|
if let TopLevelDef::Class {
|
||||||
object_id, methods, constructor, ..
|
object_id, methods, constructor, ..
|
||||||
} = &*def.read() {
|
} = &*def.read() {
|
||||||
if object_id == def_id
|
if object_id == def_id && !constructor.is_none() && methods.iter().any(|(s, _, _)| s == &"__init__".into()) {
|
||||||
|| !constructor.is_none()
|
|
||||||
|| methods.iter().any(|(s, _, _)| s == &"__init__".into()) {
|
|
||||||
return constructor.clone();
|
return constructor.clone();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue