(cls: PyTypeRef, args: FuncArgs, vm: &VirtualMachine)
| 314 | type Args = FuncArgs; |
| 315 | |
| 316 | fn slot_new(cls: PyTypeRef, args: FuncArgs, vm: &VirtualMachine) -> PyResult { |
| 317 | let typevar = <Self as Constructor>::py_new(&cls, args, vm)?; |
| 318 | let obj = typevar.into_ref_with_type(vm, cls)?; |
| 319 | let obj_ref: PyObjectRef = obj.into(); |
| 320 | set_module_from_caller(&obj_ref, vm)?; |
| 321 | Ok(obj_ref) |
| 322 | } |
| 323 | |
| 324 | fn py_new(_cls: &Py<PyType>, args: Self::Args, vm: &VirtualMachine) -> PyResult<Self> { |
| 325 | let mut kwargs = args.kwargs; |
nothing calls this directly
no test coverage detected