fix type_check (#5097)

This commit is contained in:
Dan Näsman authored and GitHub committed 2023-10-19 18:03:34 -07:00
1 parent bda7c5cf06
commit 03576615e4
1 file changed
+1 -1
+1 -1
View File
@@ -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<PyResult<usize>> {