Not necessarily related to Prefect directly, but I...
# ask-community
m
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?
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
Do you know if it has been reported to Pylance? :-)
m
I didn't have time to check yet, but it's on my todo-list :-)