Method: rich.text.Text.__add__
Calls: 3, Exceptions: 0, Paths: 2Back
Path 1: 2 calls (0.67)
Text (2)
Text (2)
1def __add__(self, other: Any) -> "Text":
2 if isinstance(other, (str, Text)):
3 result = self.copy()
4 result.append(other)
5 return result
6 return NotImplemented
Path 2: 1 calls (0.33)
1 (1)
NotImplementedType (1)
1def __add__(self, other: Any) -> "Text":
2 if isinstance(other, (str, Text)):
3 result = self.copy()
4 result.append(other)
5 return result
6 return NotImplemented