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
chris
04/28/2023, 4:51 PM
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