Hacked By AnonymousFox

Current Path : /opt/cloudlinux/venv/lib64/python3.11/site-packages/numpy/testing/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib64/python3.11/site-packages/numpy/testing/__pycache__/overrides.cpython-311.pyc

�

�܋fK��L�dZddlmZddlmZddlmcm	Z
d�Zd�Zd�Z
d�ZdS)	zNTools for testing implementations of __array_function__ and ufunc overrides


�)�ARRAY_FUNCTIONS)�ufuncNc�V�d�tj���D��}|S)z�List all numpy ufuncs overridable via `__array_ufunc__`

    Parameters
    ----------
    None

    Returns
    -------
    set
        A set containing all overridable ufuncs in the public numpy API.
    c�<�h|]}t|t���|��S�)�
isinstance�_ufunc)�.0�objs  �j/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/numpy/testing/overrides.py�	<setcomp>z/get_overridable_numpy_ufuncs.<locals>.<setcomp>s6��*�*�*�c��C��(�(�*�c�*�*�*�)�_umath�__dict__�values)�ufuncss r�get_overridable_numpy_ufuncsr
s2��*�*�V�_�3�3�5�5�*�*�*�F��Mrc�6�t|tj��S)a�Determine if a function can be overridden via `__array_ufunc__`

    Parameters
    ----------
    func : callable
        Function that may be overridable via `__array_ufunc__`

    Returns
    -------
    bool
        `True` if `func` is overridable via `__array_ufunc__` and
        `False` otherwise.

    Notes
    -----
    This function is equivalent to ``isinstance(func, np.ufunc)`` and
    will work correctly for ufuncs defined outside of Numpy.

    )r�npr��funcs r�allows_array_ufunc_overriders��(�d�B�H�%�%�%rc�4�ddlm}tj��S)aList all numpy functions overridable via `__array_function__`

    Parameters
    ----------
    None

    Returns
    -------
    set
        A set containing all functions in the public numpy API that are
        overridable via `__array_function__`.

    r��recfunctions)�	numpy.libr�_array_functions�copyrs r�%get_overridable_numpy_array_functionsr2s%�� '�&�&�&�&�&�� �"�"�"rc��|tvS)ahDetermine if a Numpy function can be overridden via `__array_function__`

    Parameters
    ----------
    func : callable
        Function that may be overridable via `__array_function__`

    Returns
    -------
    bool
        `True` if `func` is a function in the Numpy API that is
        overridable via `__array_function__` and `False` otherwise.
    )rrs r�allows_array_function_overrider!Es���#�#�#r)�__doc__�numpy.core.overridesrr�numpyrr	�numpy.core.umath�core�umathrrrrr!rrr�<module>r(s�����
E�D�D�D�D�D�!�!�!�!�!�!�!�!�!�!�!�!�!�!�!����"&�&�&�.#�#�#�&$�$�$�$�$r

Hacked By AnonymousFox1.0, Coded By AnonymousFox