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

Function FunctionType

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

Source from the content-addressed store, hash-verified

65
66 #[pyattr]
67 fn FunctionType(vm: &VirtualMachine) -> PyObjectRef {
68 vm.ctx.types.function_type.to_owned().into()
69 }
70
71 #[pyattr]
72 fn GeneratorType(vm: &VirtualMachine) -> PyObjectRef {

Callers 4

add_foreign_methodMethod · 0.90
test_no_source_fileMethod · 0.90
ast_from_objectMethod · 0.85

Calls 1

to_ownedMethod · 0.45

Tested by 3

add_foreign_methodMethod · 0.72
test_no_source_fileMethod · 0.72