
    Ng\                         d Z ddlmZ ddlZddlmZ ddlmZ ddlm	Z
  G d de      Z G d	 d
e      Z G d de      Z G d de      Z G d de      Zy)z
Interface definitions paralleling the abstract base classes defined in
:mod:`numbers`.

After this module is imported, the standard library types will declare
that they implement the appropriate interface.

.. versionadded:: 5.0.0
    )absolute_importN)ABCInterface)optional)PYTHON2c                   $    e Zd Zej                  Zy)INumberN)__name__
__module____qualname__abcNumber     X/var/www/djangounited/venv/lib/python3.12/site-packages/zope/interface/common/numbers.pyr   r   $   s    
**Cr   r   c                   N    e Zd Zej                  Zed        Zered        ZeZ	yy)IComplexc                       yz<
        Rarely implemented, even in builtin types.
        Nr   r   r   r   __complex__zIComplex.__complex__+       r   c                      yzS
            The interpreter may supply one through complicated rules.
            Nr   others    r   __eq__zIComplex.__eq__2   r   r   N)
r	   r
   r   r   Complexr   r   PY2r   __ne__r   r   r   r   r   (   s@    
++C 
 		 
	
  r   r   c                   V    e Zd Zej                  Zed        ZexZZe	red        Z
e
Zyy)IRealc                       yr   r   r   r   r   r   zIReal.__complex__=   r   r   c                      yr   r   r   s    r   __le__zIReal.__le__F   r   r   N)r	   r
   r   r   Realr   r   	__floor____ceil__r   r#   __lt__r   r   r   r    r    :   sJ    
((C 
 '&I
		 
	
  r   r    c                   $    e Zd Zej                  Zy)	IRationalN)r	   r
   r   r   Rationalr   r   r   r)   r)   O       
,,Cr   r)   c                   $    e Zd Zej                  Zy)	IIntegralN)r	   r
   r   r   Integralr   r   r   r-   r-   S   r+   r   r-   )__doc__
__future__r   numbersr   zope.interface.commonr   r   zope.interface._compatr   r   r   r   r    r)   r-   r   r   r   <module>r4      sW    '  . * 1l w $H * 	 r   