Pythonic config - I currently have all settings in...
# ask-community
i
Pythonic config - I currently have all settings in a
class Settings(BaseSettings)
where
BaseSettings
is from
pydantic
. Can I somehow reuse the same class for
op
config?
c
Both inherit from BaseModel, so you could maybe get a diamond inheritance thing working? I’m skeptical though, because pydantic is pretty strict about init methods from what I recall. A better solution might be to have a shared pydantic sublayer that both the settings model and dagster config include