
    Xj                     V    d dl Z d dlmZmZ ddgZ G d de      Z e       Zde_        y)    N)AnyOptional	UndefinedUndefinedTypec                        e Zd ZU dZdZed    ed<   d fdZdefdZ	defdZ
e
ZdefdZdefd	Zd
edefdZd
edefdZ xZS )r   z5Auxiliary class for creating the Undefined singleton.N	_instancereturnc                     | j                    t        | 	  |       | _         | j                   S t        j                  dt
        d       | j                   S )NzRedefinition of 'Undefined'   )
stacklevel)r   super__new__warningswarnRuntimeWarning)cls	__class__s    f/var/www/html/myl_app/scheduler-service/venv/lib/python3.12/site-packages/graphql/pyutils/undefined.pyr   zUndefinedType.__new__   sG    == !GOC0CM }} MM7TUV}}    c                      yNr    selfs    r   
__reduce__zUndefinedType.__reduce__       r   c                      yr   r   r   s    r   __repr__zUndefinedType.__repr__   r   r   c                      t        t              S N)hashr   r   s    r   __hash__zUndefinedType.__hash__   s    M""r   c                      y)NFr   r   s    r   __bool__zUndefinedType.__bool__   s    r   otherc                     |t         u S r    )r   r   r%   s     r   __eq__zUndefinedType.__eq__!   s    	!!r   c                     | |k(   S r    r   r'   s     r   __ne__zUndefinedType.__ne__$   s    5=  r   )r	   r   )__name__
__module____qualname____doc__r   r   __annotations__r   strr   r   __str__intr"   boolr$   r   r(   r*   __classcell__)r   s   @r   r   r      sw    ?+/Ix(/C #  G## #$ "C "D "!C !D !r   zSymbol for undefined values

This singleton object is used to describe undefined or invalid  values.
It can be used in places where you would use ``undefined`` in GraphQL.js.
)	r   typingr   r   __all__
ValueErrorr   r   r.   r   r   r   <module>r8      s5      
(!J !D O		 r   