Skip to content

Commit 06f4753

Browse files
committed
remove unnecessary type check
1 parent df1d09e commit 06f4753

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

molpipeline/pipeline/_skl_pipeline.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -469,10 +469,6 @@ def _agg_non_postpred_steps(
469469
aggregated_transformer_list: list[tuple[int, str, ABCPipelineElement]]
470470
aggregated_transformer_list = []
471471
for i, (name_i, step_i) in enumerate(self._non_post_processing_steps()):
472-
if not isinstance(step_i, ABCPipelineElement):
473-
raise AssertionError(
474-
"Step is not a PipelineElement, hence cannot be aggregated.",
475-
)
476472
if isinstance(step_i, SingleInstanceTransformerMixin):
477473
aggregated_transformer_list.append((i, name_i, step_i))
478474
else:

0 commit comments

Comments
 (0)