Compare commits
No commits in common. "5d5ec5217065feadd28053b7b9e5c59eaa536282" and "815176c8c785eeae6686d42f0b83df45d05e94b4" have entirely different histories.
5d5ec52170
...
815176c8c7
|
@ -556,7 +556,7 @@ impl InnerResolver {
|
|||
if let TopLevelDef::Class {
|
||||
object_id, methods, constructor, ..
|
||||
} = &*def.read() {
|
||||
if object_id == def_id && constructor.is_some() && methods.iter().any(|(s, _, _)| s == &"__init__".into()) {
|
||||
if object_id == def_id && !constructor.is_none() && methods.iter().any(|(s, _, _)| s == &"__init__".into()) {
|
||||
return constructor.clone();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue