def has_default(arg: Any) -> bool:
    if isinstance(arg, inspect.Parameter):
        return (arg.default != inspect.Parameter.empty)
    if isinstance(arg, nodes.Argument):
        return (arg.kind in (nodes.ARG_OPT, nodes.ARG_NAMED_OPT))
    raise AssertionError
def has_default(arg: Any) -> bool:
    if isinstance(arg, inspect.Parameter):
        return (arg.default != inspect.Parameter.empty)
    if isinstance(arg, nodes.Argument):
        return (arg.kind in (nodes.ARG_OPT, nodes.ARG_NAMED_OPT))
    raise AssertionError