From 03576615e4af4e776a42b05ff3df1287b3be0fcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20N=C3=A4sman?= <30578250+dannasman@users.noreply.github.com> Date: Fri, 20 Oct 2023 04:03:34 +0300 Subject: [PATCH] fix type_check (#5097) --- vm/src/protocol/object.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm/src/protocol/object.rs b/vm/src/protocol/object.rs index 28f481fe96..dc7f487e85 100644 --- a/vm/src/protocol/object.rs +++ b/vm/src/protocol/object.rs @@ -565,7 +565,7 @@ impl PyObject { // int PyObject_TypeCheck(PyObject *o, PyTypeObject *type) pub fn type_check(&self, typ: PyTypeRef) -> bool { - self.class().fast_isinstance(&typ) + self.fast_isinstance(&typ) } pub fn length_opt(&self, vm: &VirtualMachine) -> Option> {