§
    xÅjº	  ã                   ó¼   — d dl Z d dlmZ d dlZerd dlmZmZmZ d dlZ G d„ d¦  «        Zdd„Z	dd„Z
er G d„ dej        j        e¦  «        ZdS  d„ ¦   «         ZdS )é    N)ÚTYPE_CHECKING)ÚAnyÚContextManagerÚOptionalc                   ó*   — e Zd ZdZdd„Zdd„Zdd„ZdS )Ú
_InitGuardzüUsing the return value of sentry_sdk.init as a context manager and manually calling the __enter__ and __exit__ methods on the return value are deprecated. We are no longer maintaining this functionality, and we will remove it in the next major release.Úclientúsentry_sdk.ClientÚreturnNc                 ó   — || _         d S ©N)Ú_client)Úselfr	   s     úPC:\Projects\Historical\venv\Lib\site-packages\sentry_sdk/_init_implementation.pyÚ__init__z_InitGuard.__init__   s   € ØˆŒˆˆó    c                 óH   — t          j        | j        dt          ¬¦  «         | S ©Né   )Ú
stacklevelÚcategory)ÚwarningsÚwarnÚ,_CONTEXT_MANAGER_DEPRECATION_WARNING_MESSAGEÚDeprecationWarning)r   s    r   Ú	__enter__z_InitGuard.__enter__   s.   € ÝŒØÔ=ØÝ'ð	
ñ 	
ô 	
ð 	
ð ˆr   Úexc_typer   Ú	exc_valueÚtbc                 ó†   — t          j        | j        dt          ¬¦  «         | j        }|�|                     ¦   «          d S d S r   )r   r   r   r   r   Úclose)r   r   r   r   Úcs        r   Ú__exit__z_InitGuard.__exit__    sM   € ÝŒØÔ=ØÝ'ð	
ñ 	
ô 	
ð 	
ð ŒLˆØˆ=Ø�GŠG‰IŒIˆIˆIˆIð ˆ=r   )r	   r
   r   N)r   r   )r   r   r   r   r   r   r   N)Ú__name__Ú
__module__Ú__qualname__r   r   r   r#   © r   r   r   r      s[   € € € € € ð	Jð 1ðð ð ð ðð ð ð ð	ð 	ð 	ð 	ð 	ð 	r   r   r   c                  ó   — d S r   r'   r'   r   r   Ú_check_python_deprecationsr)   ,   s	   € ð 	€Dr   ÚargsúOptional[str]Úkwargsr   úContextManager[Any]c                  ó®   — t          j        | i |¤Ž}t          j        ¦   «                              |¦  «         t	          ¦   «          t          |¦  «        }|S )zsInitializes the SDK and optionally integrations.

    This takes the same arguments as the client constructor.
    )Ú
sentry_sdkÚClientÚget_global_scopeÚ
set_clientr)   r   )r*   r,   r	   Úrvs       r   Ú_initr4   3   sT   € õ
 Ô Ð/¨Ð/Ð/€FÝÔÑ!Ô!×,Ò,¨VÑ4Ô4Ð4ÝÑ Ô Ð Ý	�FÑ	Ô	€BØ€Ir   c                   ó   — e Zd ZdS )ÚinitN)r$   r%   r&   r'   r   r   r6   r6   F   s   € € € € € Øˆr   r6   c                  ó   — t           S r   )r4   r'   r   r   ú<lambda>r8   N   s   € •E€ r   )r   N)r*   r+   r,   r   r   r-   )r   Útypingr   r/   r   r   r   Úsentry_sdk.constsr   r)   r4   ÚconstsÚClientConstructorr6   r'   r   r   ú<module>r=      s
  ðØ €€€Ø  Ð  Ð  Ð  Ð  Ð  à Ð Ð Ð àð Ø4Ð4Ð4Ð4Ð4Ð4Ð4Ð4Ð4Ð4àÐÐÐðð ð ð ð ñ ô ð ð@	ð 	ð 	ð 	ð	ð 	ð 	ð 	ð ð ðð ð ð ð ˆzÔ Ô2°Jñ ô ð ð ð ð ˆMˆMÑÔ€D€D€Dr   