Skip to content

Converting steps to list breaks pipeline cloning #9715

Closed
@amueller

Description

@amueller

#9604 breaks cloning in pipelines. At least the "strict" cloning I wanted to enforce for 0.20.
The patch in #9604 results in a deprecation warning each time a pipeline is cloned because __init__ modifies steps.

I'm not entirely sure what to do about that, but if we want the deprecation of clone to go through (which I want), we need to refactor pipeline to not modify steps - which is probably hard to do in a backward compatible manner.

Another option would be to not copy a lists if it's passed in, and deprecate the behavior of passing a tuple. How did this work in 0.18?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions