ó
    Û2‰ië	  ã                   ó~   • S SK r S SKrS SKr\R                  " \5      r " S S\ R                  5      r " S S5      rg)é    Nc                   ó(   • \ rS rSrSrSr Sr SrSrg)Ú
StatusCodeé   z@Represents the canonical set of status codes of a finished Span.r   é   é   © N)	Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__ÚUNSETÚOKÚERRORÚ__static_attributes__r   ó    ÚW/home/mande/repo/quber/.venv/lib/python3.13/site-packages/opentelemetry/trace/status.pyr   r      s   † ÙJà€EØà	
€BØrà€EÚ*r   r   c                   óÚ   • \ rS rSrSr\R                  S4S\S\R                  \	   4S jjr
\S\4S j5       r\S\R                  \	   4S	 j5       r\S\4S
 j5       r\S\4S j5       rSrg)ÚStatusé#   zÏRepresents the status of a finished Span.

Args:
    status_code: The canonical status code that describes the result
        status of the operation.
    description: An optional description of the status.
NÚstatus_codeÚdescriptionc                 óà   • Xl         S U l        U(       aT  [        U[        5      (       d  [        R                  S5        g U[        R                  La  [        R                  S5        g X l        g )Nz-Invalid status description type, expected strzJdescription should only be set when status_code is set to StatusCode.ERROR)Ú_status_codeÚ_descriptionÚ
isinstanceÚstrÚloggerÚwarningr   r   )Úselfr   r   s      r   Ú__init__ÚStatus.__init__,   sZ   € ð
 (ÔØ ˆÔæÜ˜k¬3×/Ñ/Ü—‘ÐNÔOØØ¤*×"2Ñ"2Ò2Ü—‘Ø`ôð à'Õr   Úreturnc                 ó   • U R                   $ )z8Represents the canonical status code of a finished Span.)r   ©r    s    r   r   ÚStatus.status_code@   ó   € ð × Ñ Ð r   c                 ó   • U R                   $ )zStatus description)r   r%   s    r   r   ÚStatus.descriptionE   r'   r   c                 ó`   • U R                   =(       d    U R                  [        R                  L $ )z:Returns false if this represents an error, true otherwise.)Úis_unsetr   r   r   r%   s    r   Úis_okÚStatus.is_okJ   s"   € ð �}‰}×B × 1Ñ 1´Z·]±]Ð BÐBr   c                 ó:   • U R                   [        R                  L $ )z'Returns true if unset, false otherwise.)r   r   r   r%   s    r   r+   ÚStatus.is_unsetO   s   € ð × Ñ ¤J×$4Ñ$4Ð4Ð4r   )r   r   )r	   r
   r   r   r   r   r   ÚtypingÚOptionalr   r!   Úpropertyr   r   Úboolr,   r+   r   r   r   r   r   r   #   s­   † ñð #-×"2Ñ"2Ø,0ñ(àð(ð —_‘_ SÑ)õ(ð( ð!˜Zó !ó ð!ð ð!˜VŸ_™_¨SÑ1ó !ó ð!ð ðC�tó Có ðCð ð5˜$ó 5ó ó5r   r   )	ÚenumÚloggingr0   Ú	getLoggerr	   r   ÚEnumr   r   r   r   r   Ú<module>r8      s:   ðó Û Û à	×	Ò	˜8Ó	$€ô
+�—‘ô 
+÷/5ò /5r   