(typ: PyTypeRef, obj: PyObjectRef, vm: &VirtualMachine)
| 28 | |
| 29 | impl PySuperInner { |
| 30 | fn new(typ: PyTypeRef, obj: PyObjectRef, vm: &VirtualMachine) -> PyResult<Self> { |
| 31 | let obj = if vm.is_none(&obj) { |
| 32 | None |
| 33 | } else { |
| 34 | let obj_type = super_check(typ.clone(), obj.clone(), vm)?; |
| 35 | Some((obj, obj_type)) |
| 36 | }; |
| 37 | Ok(Self { typ, obj }) |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | impl PyPayload for PySuper { |
nothing calls this directly
no test coverage detected