Differential D6164 Diff 30546 python_modules/dagster-graphql/dagster_graphql/schema/config_type_or_error.py
Changeset View
Changeset View
Standalone View
Standalone View
python_modules/dagster-graphql/dagster_graphql/schema/config_type_or_error.py
- This file was added.
import graphene | |||||
from .config_types import ( | |||||
GrapheneCompositeConfigType, | |||||
GrapheneEnumConfigType, | |||||
GrapheneRegularConfigType, | |||||
) | |||||
from .errors import GraphenePipelineNotFoundError, GraphenePythonError | |||||
from .pipelines.pipeline_errors import GrapheneConfigTypeNotFoundError | |||||
class GrapheneConfigTypeOrError(graphene.Union): | |||||
class Meta: | |||||
types = ( | |||||
GrapheneEnumConfigType, | |||||
GrapheneCompositeConfigType, | |||||
GrapheneRegularConfigType, | |||||
GraphenePipelineNotFoundError, | |||||
GrapheneConfigTypeNotFoundError, | |||||
GraphenePythonError, | |||||
) | |||||
name = "ConfigTypeOrError" |