
    !h                         d dl Z 	 d dlmZmZ  G d de      Z G d d      Z ed      Z	 ed      Z
y# e$ r d dlmZmZ Y 5w xY w)	    N)reversereverse_lazyc                       e Zd Zy)RemovedInDjango20WarningN)__name__
__module____qualname__     _/var/www/html/Ryun_Seer/newvenv/lib/python3.12/site-packages/rest_framework_simplejwt/compat.pyr   r   	   s    r   r   c                   J    e Zd ZdZdZd Zd Zd Zd Zd Z	d Z
d	 Zd
 Zd Zy)CallableBoolzS
    An boolean-like object that is also callable for backwards compatibility.
    Tc                     || _         y Nvalue)selfr   s     r   __init__zCallableBool.__init__   s	    
r   c                     | j                   S r   r   r   s    r   __bool__zCallableBool.__bool__       zzr   c                 R    t        j                  dt        d       | j                  S )NzUsing user.is_authenticated() and user.is_anonymous() as a method is deprecated. Remove the parentheses to use it as an attribute.   )
stacklevel)warningswarnr   r   r   s    r   __call__zCallableBool.__call__   s&    O$		
 zzr   c                     | j                   S r   r   r   s    r   __nonzero__zCallableBool.__nonzero__#   r   r   c                      d| j                   z  S )NzCallableBool(%r)r   r   s    r   __repr__zCallableBool.__repr__&   s    !DJJ..r   c                      | j                   |k(  S r   r   r   others     r   __eq__zCallableBool.__eq__)       zzU""r   c                      | j                   |k7  S r   r   r$   s     r   __ne__zCallableBool.__ne__,   r'   r   c                 4    t        | j                  xs |      S r   )boolr   r$   s     r   __or__zCallableBool.__or__/   s    DJJ'%((r   c                 ,    t        | j                        S r   )hashr   r   s    r   __hash__zCallableBool.__hash__2   s    DJJr   N)r   r   r	   __doc__do_not_call_in_templatesr   r   r   r    r"   r&   r)   r,   r/   r
   r   r   r   r      s<      $/##) r   r   FT)r   django.urlsr   r   ImportErrordjango.core.urlresolversDeprecationWarningr   r   CallableFalseCallableTruer
   r   r   <module>r8      sV    ?1
	1 	&  & R U#D!e  ?>>?s   4 AA