
    Cj                    f    S SK Jr  S SKrS SKJr   " S S\5      r " S S\5      r " S S	\5      r	g)
    )annotationsN)Mappingc                  6    \ rS rSrSSS jjrS	S jrS	S jrSrg)
HTTPException   Nc                n    Uc   [         R                  " U5      R                  nXl        X l        X0l        g N)http
HTTPStatusphrasestatus_codedetailheaders)selfr   r   r   s       f/home/rurouni/.local/share/pipx/venvs/strix-agent/lib/python3.13/site-packages/starlette/exceptions.py__init__HTTPException.__init__   s+    >__[188F&    c                8    U R                    SU R                   3$ Nz: )r   r   r   s    r   __str__HTTPException.__str__   s    ""#2dkk]33r   c                p    U R                   R                  nU SU R                  < SU R                  < S3$ )Nz(status_code=z	, detail=))	__class____name__r   r   r   
class_names     r   __repr__HTTPException.__repr__   s6    ^^,,
]4+;+;*>iVWXXr   )r   r   r   )NN)r   intr   
str | Noner   zMapping[str, str] | NonereturnNoner$   strr   
__module____qualname____firstlineno__r   r   r    __static_attributes__ r   r   r   r      s    4Yr   r   c                  6    \ rS rSrSSS jjrS	S jrS	S jrSrg)
WebSocketException   Nc                0    Xl         U=(       d    SU l        g )N codereason)r   r4   r5   s      r   r   WebSocketException.__init__   s    	lr   c                8    U R                    SU R                   3$ r   r3   r   s    r   r   WebSocketException.__str__   s    ))Bt{{m,,r   c                p    U R                   R                  nU SU R                  < SU R                  < S3$ )Nz(code=z	, reason=r   )r   r   r4   r5   r   s     r   r    WebSocketException.__repr__   s2    ^^,,
VDII=	$++JJr   r3   r	   )r4   r"   r5   r#   r$   r%   r&   r(   r-   r   r   r/   r/      s    #-Kr   r/   c                      \ rS rSrSrSrg)StarletteDeprecationWarning$   aO  A custom deprecation warning for Starlette.

Unlike the built-in DeprecationWarning, this inherits from UserWarning to ensure it is visible by default, helping
users discover deprecated features without needing to enable warnings explicitly.

Reference: https://sethmlarson.dev/deprecations-via-warnings-dont-work-for-python-libraries
r-   N)r   r)   r*   r+   __doc__r,   r-   r   r   r<   r<   $   s    r   r<   )

__future__r   r
   collections.abcr   	Exceptionr   r/   UserWarningr<   r-   r   r   <module>rC      s6    "  #YI Y 
K 
K+ r   