type protocol PyObject *PyObject_Type(PyObject *o)
(&self)
| 683 | // type protocol |
| 684 | // PyObject *PyObject_Type(PyObject *o) |
| 685 | pub fn obj_type(&self) -> PyObjectRef { |
| 686 | self.class().to_owned().into() |
| 687 | } |
| 688 | |
| 689 | // int PyObject_TypeCheck(PyObject *o, PyTypeObject *type) |
| 690 | pub fn type_check(&self, typ: &Py<PyType>) -> bool { |
no test coverage detected