Module osbot_utils.decorators.methods.obj_as_context

Expand source code
from contextlib import contextmanager


@contextmanager
def obj_as_context(variable):
    yield variable

Functions

def obj_as_context(variable)
Expand source code
@contextmanager
def obj_as_context(variable):
    yield variable