Skip to content

Commit

Permalink
Fix deferred config resolution.
Browse files Browse the repository at this point in the history
  • Loading branch information
riga committed May 30, 2024
1 parent fb8e470 commit a849075
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion law/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ def __init__(
skip_includes: bool = False,
skip_env_sync: bool = False,
skip_luigi_sync: bool = False,
skip_resolve_deferred: bool = False,
) -> None:
super().__init__(allow_no_value=True)

Expand Down Expand Up @@ -261,6 +262,7 @@ def include_configs(filenames):
skip_includes=True,
skip_env_sync=True,
skip_luigi_sync=True,
skip_resolve_deferred=True,
)
include_configs(c.get_expanded("core", "extend", None))

Expand All @@ -281,7 +283,8 @@ def include_configs(filenames):
self.sync_luigi_config()

# resolve deferred default values
self.resolve_deferred_defaults()
if not skip_resolve_deferred:
self.resolve_deferred_defaults()

def _get_type_converter(self, type: type | str, value: Any) -> type | Callable[[Any], Any]:
if type in (str, "str", "s"):
Expand Down

0 comments on commit a849075

Please sign in to comment.