HEX
Server: Apache
System: Linux 185.122.168.184.host.secureserver.net 5.14.0-570.60.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Nov 5 05:00:59 EST 2025 x86_64
User: barbeatleanalyti (1024)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //var/opt/nydus/ops/mysql/opentelemetry/context/__pycache__/context.cpython-39.pyc
a

�,�ha�@sLddlZddlmZmZGdd�dejeef�ZGdd�de�ZdgZ	dS)�N)�ABC�abstractmethodc@seZdZeedd�dd�ZdS)�ContextN)�key�value�returncCst�dS)N)�
ValueError)�selfrr�r
�V/opt/nydus/tmp/pip-target-wkfpz8uv/lib64/python/mysql/opentelemetry/context/context.py�__setitem__szContext.__setitem__)�__name__�
__module__�__qualname__�str�objectrr
r
r
rrsrc@sJeZdZdZeeed�dd��Zeed�dd��Zeedd	�d
d��Z	dS)�_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.
    )�contextrcCsdS)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	rr
r
r�attach sz_RuntimeContext.attach)rcCsdS)z%Returns the current `Context` object.Nr
)r	r
r
r�get_current)sz_RuntimeContext.get_currentN)�tokenrcCsdS)zpResets Context to a previous value

        Args:
            token: A reference to a previous Context.
        Nr
)r	rr
r
r�detach-sz_RuntimeContext.detach)
r
rr�__doc__rrrrrrr
r
r
rrsr)
�typing�abcrr�Dictrrrr�__all__r
r
r
r�<module>s