o
    jg\  ã                   @   s&   d Z ddlmZ eG dd„ dƒƒZdS )z(Trait for implementing domain elements. é    )Úpublicc                   @   s   e Zd ZdZdZdd„ ZdS )ÚDomainElementz¹
    Represents an element of a domain.

    Mix in this trait into a class whose instances should be recognized as
    elements of a domain. Method ``parent()`` gives that domain.
    © c                 C   s   t dƒ‚)a·  Get the domain associated with ``self``

        Examples
        ========

        >>> from sympy import ZZ, symbols
        >>> x, y = symbols('x, y')
        >>> K = ZZ[x,y]
        >>> p = K(x)**2 + K(y)**2
        >>> p
        x**2 + y**2
        >>> p.parent()
        ZZ[x,y]

        Notes
        =====

        This is used by :py:meth:`~.Domain.convert` to identify the domain
        associated with a domain element.
        zabstract method)ÚNotImplementedError)Úselfr   r   úY/var/www/html/zoom/venv/lib/python3.10/site-packages/sympy/polys/domains/domainelement.pyÚparent   s   zDomainElement.parentN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	__slots__r   r   r   r   r   r      s    r   N)r   Úsympy.utilitiesr   r   r   r   r   r   Ú<module>   s    