Context Manager ABCs#

New in version 4.3.2.

Important

This page contains metaclasses. As this is an advanced Python topic you should not try to use these methods if you don’t have the experience.

class interactions.utils.abc.base_context_managers.BaseAsyncContextManager[source]#

Bases: ABC

New in version 4.3.2.

A base class for async context managers.

abstract __init__()[source]#

Initialise the Context manager

abstract async __aenter__()[source]#

Enter the context manager

abstract async __aexit__(exc_type, exc_val, exc_tb)[source]#

Exit the context Manager

class interactions.utils.abc.base_context_managers.BaseContextManager[source]#

Bases: ABC

New in version 4.3.2.

A base class for context managers.

abstract __init__()[source]#

Initialise the Context manager

abstract __enter__()[source]#

Enter the context manager

abstract __exit__(exc_type, exc_val, exc_tb)[source]#

Exit the context Manager