mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
fix type_check (#5097)
This commit is contained in:
1 parent
bda7c5cf06
commit
03576615e4
1 file changed
+1
-1
@@ -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