Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add __enter__ and __exit__ methods on Optimize class (#7477)
This enables the use of the with statement for the Optimize class to concisely call push() and pop(). This works similarly to the Solver class.
- Loading branch information