Nash Taylor
12/17/2024, 3:45 AM@flow
, everything is fine. When I try to add arguments, such as @flow(task_runner=ThreadPoolTaskRunner(max_workers=3))
, I get the error in the thread.
Thanks in advance for any help!Nash Taylor
12/17/2024, 3:45 AMArgument of type "ThreadPoolTaskRunner" cannot be assigned to parameter "task_runner" of type "TaskRunner[PrefectFuture[R@flow]] | None" in function "flow"
Type "ThreadPoolTaskRunner" is incompatible with type "TaskRunner[PrefectFuture[R@flow]] | None"
"ThreadPoolTaskRunner" is incompatible with "TaskRunner[PrefectFuture[R@flow]]"
Type parameter "F@TaskRunner" is invariant, but "PrefectConcurrentFuture[Unknown]" is not the same as "PrefectFuture[R@flow]"
"ThreadPoolTaskRunner" is incompatible with "None"PylancereportArgumentType
Damien
12/18/2024, 9:32 AMJoe
01/02/2025, 9:08 PM