o
    ¹iI  ã                   @  sB   d Z ddlmZ ddlmZ ddlmZ ddlmZ ddd„Z	dS )z*
Functions for defining unary operations.
é    )Úannotations)ÚAny)Ú	ArrayLike)ÚABCExtensionArrayÚleftr   Úrightr   ÚreturnÚboolc                 C  s   t | tƒp	t |tƒS )zÕ
    Identify cases where Series operation should dispatch to ExtensionArray method.

    Parameters
    ----------
    left : np.ndarray or ExtensionArray
    right : object

    Returns
    -------
    bool
    )Ú
isinstancer   )r   r   © r   úS/var/www/edux/Edux_v2/venv/lib/python3.10/site-packages/pandas/core/ops/dispatch.pyÚshould_extension_dispatch   s   r   N)r   r   r   r   r   r	   )
Ú__doc__Ú
__future__r   Útypingr   Úpandas._typingr   Úpandas.core.dtypes.genericr   r   r   r   r   r   Ú<module>   s    