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

Function GenericAlias

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

Source from the content-addressed store, hash-verified

75
76 #[pyattr]
77 fn GenericAlias(vm: &VirtualMachine) -> PyObjectRef {
78 vm.ctx.types.generic_alias_type.to_owned().into()
79 }
80
81 #[pyattr]
82 fn GetSetDescriptorType(vm: &VirtualMachine) -> PyObjectRef {

Callers 8

_eval_typeFunction · 0.90
_strip_annotationsFunction · 0.90
test_evil_repr1Method · 0.90
test_evil_repr2Method · 0.90
test_evil_repr3Method · 0.90
test_pickleMethod · 0.90
test_copyMethod · 0.90
test_no_kwargsMethod · 0.90

Calls 1

to_ownedMethod · 0.45

Tested by 6

test_evil_repr1Method · 0.72
test_evil_repr2Method · 0.72
test_evil_repr3Method · 0.72
test_pickleMethod · 0.72
test_copyMethod · 0.72
test_no_kwargsMethod · 0.72