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
With a recent change it is possible to shortcut using a settings constructor directly and instead provide settings' field values directly to the Component constructor, which then get passed on to the Component's SETTINGS object. However, this only works if there is no settings kwarg passed to the Component constructor. In effect, a Settings class with a .settings field can never have that field set by the above shortcut. Moreover, this would be a difficult error to detect and explain.
Thus, we should detect it pre-emptively and warn a user against their custom ez.Settings-derived class having a field named .settings.
The text was updated successfully, but these errors were encountered:
With a recent change it is possible to shortcut using a settings constructor directly and instead provide settings' field values directly to the Component constructor, which then get passed on to the Component's SETTINGS object. However, this only works if there is no
settings
kwarg passed to the Component constructor. In effect, a Settings class with a .settings field can never have that field set by the above shortcut. Moreover, this would be a difficult error to detect and explain.Thus, we should detect it pre-emptively and warn a user against their custom ez.Settings-derived class having a field named
.settings
.The text was updated successfully, but these errors were encountered: