[BUG]: Importing annotations
from __future__
breaks pipeline compilation
#2477
Labels
bug
Something isn't working
Contact Details [Optional]
No response
System Information
What happened?
Developing a new pipeline, I added a helper method to refactor one of the steps.
In order to type-hint that helper method (which returns a pandas Series, so the type hint needed to be
pd.Series[float]
) I added at the top of the file where the step was defined the lineThis caused my pipeline to stop working, with the very confusing error
Reproduction steps
from __future__ import annotations
to the file defining some pipeline steps, and the pipeline run will break at pipeline compilation time.(I was using python 3.11.6)
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: