Skip to content

Commit

Permalink
Fix isinstance check
Browse files Browse the repository at this point in the history
  • Loading branch information
theCapypara committed Mar 17, 2024
1 parent 1cd20be commit f58c53b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ycd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ impl DocReference {
}

let self_type = self_.referenced_type.extract::<&PyType>(py)?;
if self_type.is_instance(data)? {
if data.is_instance(self_type)? {
let data_doc: &PyCell<YamlConfigDocument> = data.extract()?;
if data_doc.borrow().doc.contains_key(REF) {
return Ok(true);
Expand Down

0 comments on commit f58c53b

Please sign in to comment.