fix type_check (#5097)

This commit is contained in:
Dan Näsman
2023-10-20 04:03:34 +03:00
committed by GitHub
parent bda7c5cf06
commit 03576615e4

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>> {