�
���g� � � � d dl mZ d dlZd dlmZmZ d dlmZ G d� dej e e
f � � Z G d� de� � ZdgZ
dS ) � )�annotationsN)�ABC�abstractmethod)�Tokenc � � e Zd Zd d�ZdS )
�Context�key�str�value�object�return�Nonec � � t �)N)�
ValueError)�selfr r s �m/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/opentelemetry/context/context.py�__setitem__zContext.__setitem__ s � ��� N)r r
r r r
r )�__name__�
__module__�__qualname__r � r r r r s( � � � � � �� � � � � r r c �Z � e Zd ZdZedd�� � Zed
d�� � Zedd
�� � ZdS )�_RuntimeContextz�The 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 r
�Token[Context]c � � dS )z�Sets 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 �attachz_RuntimeContext.attach"