betty.contextlib module

Provide context manager utilities.

class betty.contextlib.SynchronizedContextManager[source]

Bases: Generic[_ContextT]

Make an asynchronous context manager synchronous.

__init__(context_manager: AsyncContextManager[_ContextT])[source]