Returns true if `other` has the same known value as this Dimension.
(self, other)
| 205 | return "?" if value is None else str(value) |
| 206 | |
| 207 | def __eq__(self, other): |
| 208 | """Returns true if `other` has the same known value as this Dimension.""" |
| 209 | try: |
| 210 | other = as_dimension(other) |
| 211 | except (TypeError, ValueError): |
| 212 | return NotImplemented |
| 213 | if self._value is None or other.value is None: |
| 214 | return None |
| 215 | return self._value == other.value |
| 216 | |
| 217 | def __ne__(self, other): |
| 218 | """Returns true if `other` has a different known value from `self`.""" |
nothing calls this directly
no test coverage detected