(args: &Py<PyTuple>, vm: &VirtualMachine)
| 362 | } |
| 363 | |
| 364 | pub fn make_union(args: &Py<PyTuple>, vm: &VirtualMachine) -> PyResult { |
| 365 | let result = dedup_and_flatten_args(args, vm)?; |
| 366 | Ok(match result.args.len() { |
| 367 | 1 => result.args[0].to_owned(), |
| 368 | _ => PyUnion::from_components(result, vm)?.to_pyobject(vm), |
| 369 | }) |
| 370 | } |
| 371 | |
| 372 | impl PyUnion { |
| 373 | fn getitem(zelf: PyRef<Self>, needle: PyObjectRef, vm: &VirtualMachine) -> PyResult { |
no test coverage detected