Method
__or__
(&self, other: PyObjectRef, vm: &VirtualMachine)
Source from the content-addressed store, hash-verified
| 594 | } |
| 595 | |
| 596 | fn __or__(&self, other: PyObjectRef, vm: &VirtualMachine) -> PyResult<PyArithmeticValue<Self>> { |
| 597 | if let Ok(other) = AnySet::try_from_object(vm, other) { |
| 598 | Ok(PyArithmeticValue::Implemented(self.op( |
| 599 | other, |
| 600 | PySetInner::union, |
| 601 | vm, |
| 602 | )?)) |
| 603 | } else { |
| 604 | Ok(PyArithmeticValue::NotImplemented) |
| 605 | } |
| 606 | } |
| 607 | |
| 608 | fn __and__( |
| 609 | &self, |
Tested by
no test coverage detected