Pedro Machado
09/17/2021, 1:15 PMfrom prefect import Flow, Parameter, task, unmapped
produces
"Flow" is not exported from module "prefect"
Import from "prefect.core" instead Pylance(reportPrivateImportUsage)
"Parameter" is not exported from module "prefect"
Import from "prefect.core" instead Pylance(reportPrivateImportUsage)
"task" is not exported from module "prefect"
Import from "prefect.utilities.tasks" instead Pylance(reportPrivateImportUsage)
is not exported from module "prefect"
Import from "prefect.utilities.edges" instead Pylance(reportPrivateImportUsage)
Also, I am getting pylance errors when passing Parameters to tasks that expect str
arguments. I don't believe this was happening before.
Do you know if something changed recently in pylance or in how we are supposed to import modules? I am using prefect 0.15.4 Thanks!Kevin Kho
Kevin Kho
Pedro Machado
09/17/2021, 2:07 PMPedro Machado
09/17/2021, 2:10 PMPyright
that sound like could be causing this but I can't tell for sure.Kevin Kho