You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a context manager, so that a setting can be temporarily overridden and automatically restored.
Returns: the yielded global configuration ContextVar.
"""
with_set_configuration() asCONFIGURATION:
CONFIGURATION.get().render.update(**kwargs)
yieldCONFIGURATION
The docstring of the set_configuration manager states it sets construct-time configuration. And then there is the set_render_configuation which I guess should set "renderer" related configuration?
Ideas
Rename set_configuration to set_construct_configuration to be more specific?
What?
I am bit confused with the naming and the purpose of the context managers.
dewret/src/dewret/core.py
Lines 223 to 249 in 68ef970
The docstring of the
set_configuration
manager states it setsconstruct-time
configuration. And then there is theset_render_configuation
which I guess should set "renderer" related configuration?Ideas
set_configuration
toset_construct_configuration
to be more specific?set_render_configuration
toset_renderer_configuration
. Moreover, make both context managers private and expose a new, general purposeset_render_configuration
context manager to the user which takes the summarized render arguments in the sense of Summarize "construct args and renderer args" in single render config #74.The text was updated successfully, but these errors were encountered: