Hi Because of the `task`/`flow` wrapper around eac...
# prefect-community
s
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
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
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.
k
I think this is your answer
You must have been using Pyright on VSCode
s
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.