import inspect


def iskwarg(param: inspect.Parameter) -> bool:
    """Returns whether the given parameter is to be supplied via keyword"""
    return param.default != inspect.Parameter.empty or param.kind == inspect.Parameter.KEYWORD_ONLY