import typing
import collections.abc
import typing_extensions

_GenericType1 = typing.TypeVar("_GenericType1")
_GenericType2 = typing.TypeVar("_GenericType2")

def operator_context(layout, op_context):
    """Context manager that temporarily overrides the operator context."""
