Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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_type
Function · 0.90
_strip_annotations
Function · 0.90
test_evil_repr1
Method · 0.90
test_evil_repr2
Method · 0.90
test_evil_repr3
Method · 0.90
test_pickle
Method · 0.90
test_copy
Method · 0.90
test_no_kwargs
Method · 0.90
Calls
1
to_owned
Method · 0.45
Tested by
6
test_evil_repr1
Method · 0.72
test_evil_repr2
Method · 0.72
test_evil_repr3
Method · 0.72
test_pickle
Method · 0.72
test_copy
Method · 0.72
test_no_kwargs
Method · 0.72