From 28fc043bc2322de7ed12348e8adcf44977f14c90 Mon Sep 17 00:00:00 2001 From: benpankow Date: Tue, 10 Oct 2023 14:00:31 -0700 Subject: [PATCH] add it back --- .../dagster/dagster/_config/pythonic_config/config.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python_modules/dagster/dagster/_config/pythonic_config/config.py b/python_modules/dagster/dagster/_config/pythonic_config/config.py index 9ddfb5c970979..7d0144d1f2f51 100644 --- a/python_modules/dagster/dagster/_config/pythonic_config/config.py +++ b/python_modules/dagster/dagster/_config/pythonic_config/config.py @@ -164,6 +164,9 @@ def __init__(self, **config_dict) -> None: for key, value in config_dict.items(): field = self.__fields__.get(key) + if field and not field.required and value is None: + continue + if field and field.field_info.discriminator: nested_dict = value