Skip to content

Commit 0357661

Browse files
authored
fix type_check (RustPython#5097)
1 parent bda7c5c commit 0357661

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm/src/protocol/object.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ impl PyObject {
565565

566566
// int PyObject_TypeCheck(PyObject *o, PyTypeObject *type)
567567
pub fn type_check(&self, typ: PyTypeRef) -> bool {
568-
self.class().fast_isinstance(&typ)
568+
self.fast_isinstance(&typ)
569569
}
570570

571571
pub fn length_opt(&self, vm: &VirtualMachine) -> Option<PyResult<usize>> {

0 commit comments

Comments
 (0)