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
Imagine the scenario when a user sets a config setting, e.g.
wiz.config(decimal_places=2)
Later on, the users wants to reset this config to the default value. Right now, they would have to lookup the default value which is -1 for decimal_places. Setting wiz.config(decimal_places=None) will result in unintended behavior.
To avoid this, we should provide something like:
wiz.reset("decimal_places")
String values could be stored in an enum so that we get IntelliSense. These values should be kept in sync with config_init and config.
The text was updated successfully, but these errors were encountered:
Imagine the scenario when a user sets a config setting, e.g.
Later on, the users wants to reset this config to the default value. Right now, they would have to lookup the default value which is
-1
fordecimal_places
. Settingwiz.config(decimal_places=None)
will result in unintended behavior.To avoid this, we should provide something like:
String values could be stored in an enum so that we get IntelliSense. These values should be kept in sync with
config_init
andconfig
.The text was updated successfully, but these errors were encountered: