Unanswered
Regarding The New Version 1.1.2, I Have Noticed Type Hints Are Now Included In The Script Generated By
. However, despite having imported the required types from the
typing
library in the script where the function decorated with
PipelineDecorator.component
is defined, later in the generated script the
typing
library is not imported outside the scope of the function
Actually the typing part is not passed to the "created step" , because there are no global imports, for eexample:def step(a: pd.DataFrame): import pandas as pd pass
The imports are in the function step (we cannot move them outside without a very fragile code analysis) so the created function Task will not had pands imported on the global scope and you will end up with an exception "pd not defined".
Make sense?
155 Views
0
Answers
3 years ago
one year ago