
    `i                        d dl Z d dlmZ erd dlmZ d dlmZ  ed      Ze j                  d    dk(  xr e j                  d   dk\  Ze j                  d    dk(  xr e j                  d   d	k\  Ze j                  d    dk(  xr e j                  d   d
k\  Z	e j                  d    dk(  xr e j                  d   dk\  Z
ddZdefdZy)    N)TYPE_CHECKING)Any)TypeVarT            
      returnc                 Z      G  fddt               }t         j                  |ddi       S )Nc                       e Zd Zd fdZy)!with_metaclass.<locals>.MetaClassc                      ||      S )N )metaclsname
this_basesdbasesmetas       P/opt/aeropuerto/back/api/venv/lib/python3.12/site-packages/sentry_sdk/_compat.py__new__z)with_metaclass.<locals>.MetaClass.__new__   s    eQ''    N)
r   r   r   r   r   r   r   r   r   r   )__name__
__module____qualname__r   )r   r   s   r   	MetaClassr      s    	(r   r   temporary_classr   )typer   )r   r   r   s   `` r   with_metaclassr"      s'    (D ( <<	#4b"==r   c                  *   	 ddl m ddlm dt
        dt        ffd} dv xs  | d	      } | d
      } | d      xs  | d      }|r|sddlm}  |t        d             y|s|r|sddlm}  |t        d             yy# t        $ r Y yw xY w)Nr   )optT)FALSE_VALUESoptionr   c                     j                  | d      }t        |t              r|S t        |t              r	 |j	                         }|xr t        |      j                         vS # t
        $ r Y *w xY w)NF)get
isinstanceboolbytesdecode	Exceptionstrlower)r&   valuer%   r$   s     r   enabledz+check_uwsgi_thread_support.<locals>.enabled.   so    &eT"LeU# ?U))+<??  s   A& &	A21A2threadszenable-threadszpy-call-uwsgi-fork-hooksz	lazy-appslazy)warnzIMPORTANT: We detected the use of uWSGI without thread support. This might lead to unexpected issues. Please run uWSGI with "--enable-threads" for full support.FzIMPORTANT: We detected the use of uWSGI in preforking mode without thread support. This might lead to crashing workers. Please run uWSGI with both "--enable-threads" and "--py-call-uwsgi-fork-hooks" for full support.)
uwsgir$   ImportErrorsentry_sdk.constsr%   r.   r*   warningsr4   Warning)r1   threads_enabledfork_hooks_on	lazy_moder4   r%   r$   s        @@r   check_uwsgi_thread_supportr=      s     /@ @ @  3&C'2B*CO67M$7I!M	
 }!A	
 k  s   B 	BB)r   r   r   r   r   r   )systypingr   r   r   r   version_infoPY37PY38PY310PY311r"   r*   r=   r   r   r   <module>rE      s    
  A a<C$4$4Q$71$<
a<C$4$4Q$71$<q >S%5%5a%8B%>q >S%5%5a%8B%>>DD Dr   