helion.set_default_settings

helion.set_default_settings(settings)[source]

Set the default settings for the current thread and return a context manager that restores the previous settings upon exit.

Parameters:

settings (Settings) – The Settings object to set as the default.

Returns:

A context manager that restores the previous settings upon exit.

Return type:

AbstractContextManager[None, None]