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
{{ message }}
This repository has been archived by the owner on Feb 5, 2022. It is now read-only.
There should be a way to indicate that a setting must have a non-Undefined value.
It can be easily implemented as validator, and a shortcut class:
classAppSettings(Settings):
KEY=Required# Should call Required.inject(setting)?KEY=RequiredSetting() # no initial value in __init__()!KEY=required(Setting()) # exception if initial value is not UndefinedKEY=Setting(validators=(..., is_defined)) # basically the two above can do this!
After implementing behaviors, the following is possible:
There should be a way to indicate that a setting must have a non-
Undefined
value.It can be easily implemented as validator, and a
shortcut
class:After implementing behaviors, the following is possible:
The text was updated successfully, but these errors were encountered: