This commit is contained in:
Jesse Bannon 2024-01-10 17:17:31 -08:00
parent 3929954433
commit 9623866ed9
2 changed files with 6 additions and 1 deletions

View file

@ -77,7 +77,8 @@ def _entry_variables() -> Dict[str, str]:
return { return {
name: to_variable_dependency_format_string( name: to_variable_dependency_format_string(
# pylint: disable=protected-access # pylint: disable=protected-access
script=BASE_SCRIPT, parsed_format_string=BASE_SCRIPT._variables[name] script=BASE_SCRIPT,
parsed_format_string=BASE_SCRIPT._variables[name]
# pylint: enable=protected-access # pylint: enable=protected-access
) )
for name in BASE_SCRIPT.variable_names for name in BASE_SCRIPT.variable_names

View file

@ -272,6 +272,10 @@ class Script:
output_filter: Set[str], output_filter: Set[str],
unresolvable: Set[Variable], unresolvable: Set[Variable],
) -> Dict[Variable, SyntaxTree]: ) -> Dict[Variable, SyntaxTree]:
"""
When an output filter is applied, only a subset of variables that the filter
depends on need to be resolved.
"""
subset_to_resolve: Set[str] = set() subset_to_resolve: Set[str] = set()
for output_filter_variable in output_filter: for output_filter_variable in output_filter: