from typing import Callable
from typing import Any


def get_method_arg_names(method: Callable[..., Any]) -> list:
    """Get the list of method arguments

    For example, given the method f(x, y), it returns [x , y].

    Args:
        method (Callable]): Methods to get arguments

    Returns:
        list: arguments
    """
    return list(method.__code__.co_varnames[:method.__code__.co_argcount])