Hi
Because of the `task`/`flow` wrapper around each function, PyCharm (first screenshot) is unable to help the user with which parameters the function takes. VSCode (second screenshot) manages with this.
I don't know if there's a workaround for PyCharm?
a
Anna Geller
06/06/2022, 1:45 PM
You can do command+B after navigating to the task or flow to get to the task or flow definition and see the args, and then Command Shift B to go back (that's how I use it at least)
s
Stéphan Taljaard
06/06/2022, 1:47 PM
I also do that, but it's a bit clunky and can be error-prone when using functions with a mix of optional and non-optional args
I don't know if there's something special that Prefect needs to do to expose the proper functionality for PyCharm, or is it something for PyCharm's issue tracker. I'll check out their tracker tomorrow if there's anything related posted.
Ahh I see. Yes, VSCode's default Python extension installs Pylance, which uses Pyright.
Makes sense now
I'll keep my fingers crossed. This is quite a big QOL improvement.