Source code for supriya.nonrealtime.DoNotPropagate

from typing import List


[docs]class DoNotPropagate: """ Context manager which prevents propagation of node hierarchy changes across states. """ ### CLASS VARIABLES ### __documentation_section__ = "Session Internals" _stack: List["DoNotPropagate"] = [] ### SPECIAL METHODS ###
[docs] def __enter__(self): self._stack.append(self) return self
[docs] def __exit__(self, exc_type, exc_value, traceback): self._stack.pop()