https://kedro.org/ logo
#questions
Title
# questions
g

Galen Seilis

02/08/2024, 3:27 AM
What is the rationale for
node
not being imported by default in a new
pipeline.py
file? E.g.
Copy code
from kedro.pipeline import Pipeline, pipeline


def create_pipeline(**kwargs) -> Pipeline:
    return pipeline([])
instead of
Copy code
from kedro.pipeline import Pipeline, node, pipeline


def create_pipeline(**kwargs) -> Pipeline:
    return pipeline([])
It isn't a big deal for me. Just wondering if I am using Kedro in an unintended way.
e

Erwin

02/08/2024, 3:30 AM
Just guessing, but If you import something but don't use it, it could potentially break linter checkers (ci checks). At the end this is .py file https://github.com/kedro-org/kedro/blob/main/kedro/templates/pipeline/%7B%7B%20cookiecutter.pipeline_name%20%7D%7D/pipeline.py
g

Galen Seilis

02/08/2024, 3:31 AM
@Erwin Ah, that makes sense. Thank you!
j

Juan Luis

02/08/2024, 6:03 AM
we discussed that last week, feel free to chime in! there are several ways to fix this https://github.com/kedro-org/kedro/issues/3557
👍 1