def __init__(self, name, fields, description): super(_SolidConfigDict, self).__init__( key=name, name=name, kind=ConfigTypeKind.DICT, fields=fields, description=description, type_attributes=ConfigTypeAttributes(is_system_config=True), )
def __init__(self, name, fields, description=None, handle=None, child_solids_config_field=None): self._handle = check.opt_inst_param(handle, 'handle', SolidHandle) self._child_solids_config_field = check.opt_inst_param( child_solids_config_field, 'child_solids_config_field', FieldImpl ) super(_SolidContainerConfigDict, self).__init__( key=name, name=name, fields=fields, description=description, type_attributes=ConfigTypeAttributes(is_system_config=True), )
def define_solid_config_cls(name, config_field, inputs_field, outputs_field): check.str_param(name, 'name') check_opt_field_param(config_field, 'config_field') check_opt_field_param(inputs_field, 'inputs_field') check_opt_field_param(outputs_field, 'outputs_field') return NamedDict( name, remove_none_entries({ 'config': config_field, 'inputs': inputs_field, 'outputs': outputs_field }), type_attributes=ConfigTypeAttributes(is_system_config=True), )
def SystemNamedSelector(name, fields, description=None): return NamedSelector(name, fields, description, ConfigTypeAttributes(is_system_config=True))
def SystemNamedDict(name, fields, description=None): '''A SystemNamedDict object is simply a NamedDict intended for internal (dagster) use. ''' return NamedDict(name, fields, description, ConfigTypeAttributes(is_system_config=True))
def define_execution_config_cls(name): check.str_param(name, 'name') return NamedDict( name, {}, type_attributes=ConfigTypeAttributes(is_system_config=True))