Yield all the pairs of numbers to be compared. This is used to implement the `__eq__` method.
(self, actual)
| 118 | return ApproxScalar(x, rel=self.rel, abs=self.abs, nan_ok=self.nan_ok) |
| 119 | |
| 120 | def _yield_comparisons(self, actual): |
| 121 | """Yield all the pairs of numbers to be compared. |
| 122 | |
| 123 | This is used to implement the `__eq__` method. |
| 124 | """ |
| 125 | raise NotImplementedError |
| 126 | |
| 127 | def _check_type(self) -> None: |
| 128 | """Raise a TypeError if the expected value is not a valid type.""" |