Not necessarily related to Prefect directly, but I could have sworn I was getting type hints for my tasks in VSCode previously, when using
.fn
as well. Now all calls to
.fn
simply denote the return type as
Any
.
I can't get it to work, even if I downgrade to a previous version of the Python extension. Can anyone confirm that this has been possible in the past?
Morten Hauge
01/08/2024, 2:11 PM
Answering my own question. Support for flow and task-decorator type hint forwarding appears to have been broken in Pylance 2023.12.1. Downgrading to 2023.11.10 works as expected!
t
Thomas Frederik Hoeck
01/11/2024, 8:50 AM
Do you know if it has been reported to Pylance? :-)
m
Morten Hauge
01/11/2024, 8:51 AM
I didn't have time to check yet, but it's on my todo-list :-)
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.