call_report.config.config_context#
- call_report.config.config_context(**kwargs: Any) Iterator[None][source]#
Temporarily change the package configuration within a
withblock.The previous configuration is restored on exit, including when the block raises.
- Parameters:
- **kwargsAny
Same keyword arguments as set_config.
- Yields:
- None
Nothing is yielded. The block runs with the updated configuration active.
Examples
>>> with config_context(dataframe_backend="polars"): ... get_config()["dataframe_backend"] 'polars' >>> get_config()["dataframe_backend"] 'pandas'