MCPcopy Index your code
hub / github.com/RustPython/RustPython / MethodType

Function MethodType

crates/vm/src/stdlib/_types.rs:114–116  ·  view source on GitHub ↗
(vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

112
113 #[pyattr]
114 fn MethodType(vm: &VirtualMachine) -> PyObjectRef {
115 vm.ctx.types.bound_method_type.to_owned().into()
116 }
117
118 #[pyattr]
119 fn MethodWrapperType(vm: &VirtualMachine) -> PyObjectRef {

Callers 8

__get__Method · 0.90
_create_exit_wrapperMethod · 0.90
test_vectorcallMethod · 0.90
test_no_pathMethod · 0.90
test_with_pathMethod · 0.90
create_mockMethod · 0.90
as_method_ofMethod · 0.90

Calls 1

to_ownedMethod · 0.45

Tested by 4

test_vectorcallMethod · 0.72
test_no_pathMethod · 0.72
test_with_pathMethod · 0.72
create_mockMethod · 0.72