(
origin: impl Into<PyObjectRef>,
args: PyTupleRef,
starred: bool,
vm: &VirtualMachine,
)
| 88 | )] |
| 89 | impl 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( |
nothing calls this directly
no test coverage detected