
    Ii`                     l    S SK r S SKJrJr   " S S\ R                  \\4   5      r " S S\5      rS/r	g)    N)ABCabstractmethodc                   *    \ rS rSrS\S\SS4S jrSrg)Context   keyvaluereturnNc                     [         e)N)
ValueError)selfr   r	   s      C/venv/lib/python3.13/site-packages/opentelemetry/context/context.py__setitem__Context.__setitem__   s         )__name__
__module____qualname____firstlineno__strobjectr   __static_attributes__r   r   r   r   r      s    s 6 d r   r   c                   h    \ rS rSrSr\S\S\4S j5       r\S\4S j5       r	\S\SS4S	 j5       r
S
rg)_RuntimeContext   zThe RuntimeContext interface provides a wrapper for the different
mechanisms that are used to propagate context in Python.
Implementations can be made available via entry_points and
selected through environment variables.
contextr
   c                     g)zSets the current `Context` object. Returns a
token that can be used to reset to the previous `Context`.

Args:
    context: The Context to set.
Nr   )r   r   s     r   attach_RuntimeContext.attach       r   c                     g)z%Returns the current `Context` object.Nr   )r   s    r   get_current_RuntimeContext.get_current(   r!   r   tokenNc                     g)zXResets Context to a previous value

Args:
    token: A reference to a previous Context.
Nr   )r   r%   s     r   detach_RuntimeContext.detach,   r!   r   r   )r   r   r   r   __doc__r   r   r   r   r#   r'   r   r   r   r   r   r      sf     g &   4W 4 4 F t  r   r   )
typingabcr   r   Dictr   r   r   r   __all__r   r   r   <module>r.      s;     #fkk#v+& 
c : +r   