Method: rich.console.ConsoleOptions.update_height
Calls: 10, Exceptions: 0, Paths: 1Back
Path 1: 10 calls (1.0)
3 (5) 12 (1) 10 (1) 1 (1) -1 (1) 2 (1)
ConsoleOptions (10)
1def update_height(self, height: int) -> "ConsoleOptions":
2 """Update the height, and return a copy.
3
4 Args:
5 height (int): New height
6
7 Returns:
8 ~ConsoleOptions: New Console options instance.
9 """
10 options = self.copy()
11 options.max_height = options.height = height
12 return options