def get_reserved_space(self):
reserved_space_ratio = <NUM_LIT><EOL>max_reserved_space = <NUM_LIT:8><EOL>_, height = click.get_terminal_size()<EOL>return min(int(round(height * reserved_space_ratio)), max_reserved_space)<EOL>
Get the number of lines to reserve for the completion menu.