def _get_sudo_argtypes(obj,methname):
    """Get the argtypes list for the given method.

    This searches the base classes of obj if the given method is not declared
    allowed_from_sudo, so that people don't have to constantly re-apply the
    decorator.
    """
    for base in _get_mro(obj):
        try:
            argtypes = base.__dict__[methname]._esky_sudo_argtypes
        except (KeyError,__HOLE__):
            pass
        else:
            return argtypes
    return None
dataset/ETHPy150Open cloudmatrix/esky/esky/sudo/__init__.py/_get_sudo_argtypes