Since Settings
are basically smart dataclass
, we might use annotations in settings definition to allow even simpler setup.
The goal would be
class MySettings(AppSettings):
my_foo: str = Setting(default='my_default')
my_bar: int = Setting(required=True)
or even yet simpler version
class MySettings(AppSettings):
my_foo: str = None
my_bar: int
What do you think?
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too