My proposal is to add the __enter__ and __exit__ methods to the providers.Configuration class to reduce code duplication and improve the visualization of configuration blocks.
Interesting idea. The only concern is: could there be any other features pretending to use configuration provider context manager? - There are none of them on my mind right now. Need to think of it more.
My proposal is to add the
__enter__
and__exit__
methods to theproviders.Configuration
class to reduce code duplication and improve the visualization of configuration blocks.Example of such case:
The text was updated successfully, but these errors were encountered: