Method: rich.text.Text.__eq__
Calls: 86, Exceptions: 0, Paths: 2Back
Path 1: 78 calls (0.91)
Text (78)
True (69) False (9)
1def __eq__(self, other: object) -> bool:
2 if not isinstance(other, Text):
3 return NotImplemented
4 return self.plain == other.plain and self._spans == other._spans
Path 2: 8 calls (0.09)
None (7) 1 (1)
NotImplementedType (8)
1def __eq__(self, other: object) -> bool:
2 if not isinstance(other, Text):
3 return NotImplemented
4 return self.plain == other.plain and self._spans == other._spans