(line_count: Union[int, None], padding: int)
return " " * max(0, padding - len(str(line_count))) + str(line_count)
Return the padded line count.
Return the padded line count.
Return the padded line count .
def format_line_count(line_count: Union[int, None], padding: int) -> str:
    """Return the padded line count."""
    if line_count is None:
        return " " * padding

    return " " * max(0, padding - len(str(line_count))) + str(line_count)
def format_line_count ( line_count : Union [ int , None ] , padding : int ) -> str : if line_count is None : return " " * padding return " " * max ( 0 , padding - len ( str ( line_count ) ) ) + str ( line_count )