
    h\                     2    S r SSKJr  \ " S S5      5       rg)z(Trait for implementing domain elements.     )publicc                   "    \ rS rSrSrSrS rSrg)DomainElement   z
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                     [        S5      e)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)selfs    Y/var/www/html/shao/venv/lib/python3.13/site-packages/sympy/polys/domains/domainelement.pyparentDomainElement.parent   s    * ""344    N)__name__
__module____qualname____firstlineno____doc__	__slots__r   __static_attributes__r   r   r   r   r      s     I5r   r   N)r   sympy.utilitiesr   r   r   r   r   <module>r      s$    . #5 5 5r   