src/structlog/threadlocal.py
def wrap_dict(dict_class):
    """
    Wrap a dict-like class and return the resulting class.

    The wrapped class and used to keep global in the current thread.

    :param type dict_class: Class used for keeping context.

    :rtype: `type`
    """
    Wrapped = type(
        "WrappedDict-" + str(uuid.uuid4()), (_ThreadLocalDictWrapper,), {}
    )
    Wrapped._tl = ThreadLocal()
    Wrapped._dict_class = dict_class
    return Wrapped

    Wrap a dict-like class and return the resulting class.

    The wrapped class and used to keep global in the current thread.

    :param type dict_class: Class used for keeping context.

    :rtype: `type`
    
Wrap a dict-like class and return the resulting class.
The wrapped class and used to keep global in the current thread.
Wrap a dict - like class and return the resulting class . The wrapped class and used to keep global in the current thread .
def wrap_dict(dict_class):
    Wrapped = type(
        "WrappedDict-" + str(uuid.uuid4()), (_ThreadLocalDictWrapper,), {}
    )
    Wrapped._tl = ThreadLocal()
    Wrapped._dict_class = dict_class
    return Wrapped
def wrap_dict ( dict_class ) : Wrapped = type ( "WrappedDict-" + str ( uuid . uuid4 ( ) ) , ( _ThreadLocalDictWrapper , ) , { } ) Wrapped . _tl = ThreadLocal ( ) Wrapped . _dict_class = dict_class return Wrapped
Wrap a dict-like class and return the resulting class.
Wrap a dict - like class and return the resulting class .
"""
    Wrap a dict-like class and return the resulting class.

    The wrapped class and used to keep global in the current thread.

    :param type dict_class: Class used for keeping context.

    :rtype: `type`
    """
None
`type`
dict_class
Class used for keeping context.
Class used for keeping context .