
    iKj                    h    d dl mZ d dlmZmZ d dlmZ  G d deee	f         Z
 G d de      ZdgZy)	    )annotations)ABCabstractmethod)Tokenc                      e Zd ZddZy)Contextc                    t         )N)
ValueError)selfkeyvalues      n/Users/ahmed/devFolder/Ultron/claude-voice/.venv/lib/python3.12/site-packages/opentelemetry/context/context.py__setitem__zContext.__setitem__   s        N)r   strr   objectreturnNone)__name__
__module____qualname__r    r   r   r   r   
   s    r   r   c                  F    e Zd ZdZedd       Zedd       Zedd       Zy)	_RuntimeContextzThe 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.
    c                     y)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   contexts     r   attachz_RuntimeContext.attach       r   c                     y)z%Returns the current `Context` object.Nr   )r   s    r   get_currentz_RuntimeContext.get_current   r   r   c                     y)zpResets Context to a previous value

        Args:
            token: A reference to a previous Context.
        Nr   )r   tokens     r   detachz_RuntimeContext.detach#   r   r   N)r   r   r   Token[Context])r   r   )r"   r$   r   r   )r   r   r   __doc__r   r   r    r#   r   r   r   r   r      sC       4 4  r   r   N)
__future__r   abcr   r   contextvarsr   dictr   r   r   r   __all__r   r   r   <module>r+      s:    # # d3; 
c : +r   