Changeset View
Changeset View
Standalone View
Standalone View
python_modules/dagster/dagster/core/definitions/config_mappable.py
Show First 20 Lines • Show All 112 Lines • ▼ Show 20 Lines | def _get_wrapped_config_mapping_fn(self, config_or_config_fn, config_schema): | ||||
return self.apply_config_mapping(config_evr.value) # Recursive step | return self.apply_config_mapping(config_evr.value) # Recursive step | ||||
else: | else: | ||||
return config_evr # Bubble up the errors | return config_evr # Bubble up the errors | ||||
return wrapped_config_mapping_fn | return wrapped_config_mapping_fn | ||||
def _check_configurable_param(configurable): | def _check_configurable_param(configurable): | ||||
from dagster.core.definitions.composition import CallableSolidNode | from dagster.core.definitions.composition import CallableNode | ||||
check.param_invariant( | check.param_invariant( | ||||
not isinstance(configurable, CallableSolidNode), | not isinstance(configurable, CallableNode), | ||||
"configurable", | "configurable", | ||||
( | ( | ||||
"You have invoked `configured` on a CallableSolidNode (an intermediate type), which is " | "You have invoked `configured` on a CallableNode (an intermediate type), which is " | ||||
"produced by aliasing or tagging a solid definition. To configure a solid, you must " | "produced by aliasing or tagging a solid definition. To configure a solid, you must " | ||||
"call `configured` on either a SolidDefinition and CompositeSolidDefinition. To fix " | "call `configured` on either a SolidDefinition and CompositeSolidDefinition. To fix " | ||||
"this error, make sure to call `configured` on the definition object *before* using " | "this error, make sure to call `configured` on the definition object *before* using " | ||||
"the `tag` or `alias` methods. For usage examples, see " | "the `tag` or `alias` methods. For usage examples, see " | ||||
"https://docs.dagster.io/overview/configuration#configured" | "https://docs.dagster.io/overview/configuration#configured" | ||||
), | ), | ||||
) | ) | ||||
check.inst_param( | check.inst_param( | ||||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |