"""The separator a call passes by position or by keyword: ``cut`` holds three reports, ``keyword_only`` two.

The separator by keyword (``sep=``), by position with a limit and through the unbound method are reports; a split
without a separator and one whose arguments are ``*args`` or ``**kwargs`` are not, as no ``#`` is written there.
"""


def cut(ref, args, options):
    return (
        ref.split(sep="#", maxsplit=1),
        ref.rsplit("#", 1),
        str.split(ref, "#"),
        ref.split(maxsplit=1),
        ref.split(*args),
        ref.split(**options),
    )


def keyword_only(ref):
    return ref.rsplit(sep="#", maxsplit=1), str.split(ref, sep="#"), ref.split(maxsplit=1)
