Method: rich.measure.Measurement.with_minimum
Calls: 4, Exceptions: 0, Paths: 1Back
Path 1: 4 calls (1.0)
30 (3) 10 (1)
Measurement (4)
1def with_minimum(self, width: int) -> "Measurement":
2 """Get a RenderableWith where the widths are >= width.
3
4 Args:
5 width (int): Minimum desired width.
6
7 Returns:
8 Measurement: New Measurement object.
9 """
10 minimum, maximum = self
11 width = max(0, width)
12 return Measurement(max(minimum, width), max(maximum, width))