forked from Rust-related/RustPython
fix type_check (#5097)
This commit is contained in:
@@ -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>> {
|
||||
|
||||
Reference in New Issue
Block a user