EnterExitCall
- class app.util.helpers.enter_exit_call.EnterExitCall[source]
Bases:
object
Context manager to call enter and exit methods with optional arguments.
Useful for temporarily changing state (e.g., freezing/unfreezing) in a with-block.
Inheritance Diagram for EnterExitCall
Methods
__init__
(enter, exit)Initialize the EnterExitCall context manager.
enter
()Call the enter method with provided arguments.
exit
()Call the exit method with provided arguments.