From 8c4f449b0799dcd3dfe42bdb88890d2bbbffb511 Mon Sep 17 00:00:00 2001 From: Sean Mackesey Date: Fri, 27 Dec 2024 11:38:13 -0500 Subject: [PATCH] [components] fix broken import in scaffold template (#26737) ## Summary & Motivation Fix broken import not caught by lint because it's in a template. ## How I Tested These Changes BK --- .../COMPONENT_TYPE/COMPONENT_TYPE_NAME_PLACEHOLDER.py.jinja | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/python_modules/libraries/dagster-dg/dagster_dg/templates/COMPONENT_TYPE/COMPONENT_TYPE_NAME_PLACEHOLDER.py.jinja b/python_modules/libraries/dagster-dg/dagster_dg/templates/COMPONENT_TYPE/COMPONENT_TYPE_NAME_PLACEHOLDER.py.jinja index 7bb300ced1339..c441a4df36f4c 100644 --- a/python_modules/libraries/dagster-dg/dagster_dg/templates/COMPONENT_TYPE/COMPONENT_TYPE_NAME_PLACEHOLDER.py.jinja +++ b/python_modules/libraries/dagster-dg/dagster_dg/templates/COMPONENT_TYPE/COMPONENT_TYPE_NAME_PLACEHOLDER.py.jinja @@ -1,12 +1,11 @@ from dagster import Definitions from dagster_components import ( Component, - ComponentRegistry, ComponentLoadContext, - component, + component_type, ) -@component(name="{{ name }}") +@component_type(name="{{ name }}") class {{ component_type_class_name }}(Component): @classmethod