def check_length(self, start_length: int, max_length: int) -> bool:
    'Check the length fits within a limit.\n\n        Args:\n            start_length (int): Starting length of the line (indent, prefix, suffix).\n            max_length (int): Maximum length.\n\n        Returns:\n            bool: True if the node can be rendered within max length, otherwise False.\n        '
    total_length = start_length
    for token in self.iter_tokens():
        total_length += cell_len(token)
        if (total_length > max_length):
            return False
    return True
Check the length fits within a limit.

Args:
    start_length (int): Starting length of the line (indent, prefix, suffix).
    max_length (int): Maximum length.

Returns:
    bool: True if the node can be rendered within max length, otherwise False.
def check_length(self, start_length: int, max_length: int) -> bool:
    'Check the length fits within a limit.\n\n        Args:\n            start_length (int): Starting length of the line (indent, prefix, suffix).\n            max_length (int): Maximum length.\n\n        Returns:\n            bool: True if the node can be rendered within max length, otherwise False.\n        '
    total_length = start_length
    for token in self.iter_tokens():
        total_length += cell_len(token)
        if (total_length > max_length):
            return False
    return True