(padding: int, is_patch: bool = False)
return len(LINE_DISPLAY["file"].format("0" * padding))
Return the offset due to the line display.
Return the offset due to the line display.
Return the offset due to the line display .
def get_offset(padding: int, is_patch: bool = False) -> int:
    """Return the offset due to the line display."""
    if is_patch:
        return len(LINE_DISPLAY["patch"].format("0" * padding, "0" * padding))

    return len(LINE_DISPLAY["file"].format("0" * padding))
def get_offset ( padding : int , is_patch : bool = False ) -> int : if is_patch : return len ( LINE_DISPLAY [ "patch" ] . format ( "0" * padding , "0" * padding ) ) return len ( LINE_DISPLAY [ "file" ] . format ( "0" * padding ) )