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

Method new

crates/vm/src/builtins/genericalias.rs:90–103  ·  view source on GitHub ↗
(
        origin: impl Into<PyObjectRef>,
        args: PyTupleRef,
        starred: bool,
        vm: &VirtualMachine,
    )

Source from the content-addressed store, hash-verified

88)]
89impl PyGenericAlias {
90 pub fn new(
91 origin: impl Into<PyObjectRef>,
92 args: PyTupleRef,
93 starred: bool,
94 vm: &VirtualMachine,
95 ) -> Self {
96 let parameters = make_parameters(&args, vm);
97 Self {
98 origin: origin.into(),
99 args,
100 parameters,
101 starred,
102 }
103 }
104
105 /// Create a GenericAlias from an origin and PyObjectRef arguments (helper for compatibility)
106 pub fn from_args(

Callers

nothing calls this directly

Calls 1

make_parametersFunction · 0.70

Tested by

no test coverage detected