What is the rationale for `node` not being importe...
# questions
g
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
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
@Erwin Ah, that makes sense. Thank you!
j
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