Method: rich.pretty._Line.check_length
Calls: 87, Exceptions: 0, Paths: 1Back
Path 1: 87 calls (1.0)
80 (46) 100 (9) 86 (6) 6 (6) 41 (4) 85 (3) 56 (2) 16 (2) 26 (1) 20 (1)
True (65) False (22)
1def check_length(self, max_length: int) -> bool:
2 """Check this line fits within a given number of cells."""
3 start_length = (
4 len(self.whitespace) + cell_len(self.text) + cell_len(self.suffix)
5 )
6 assert self.node is not None
7 return self.node.check_length(start_length, max_length)