Hi! I'm not getting docs or any kind of recognitio...
# ask-community
s
Hi! I'm not getting docs or any kind of recognition for the flow decorator.
flow: FlowDecorator
Task and every other import works fine. Latest version.
n
hi @Stefan this seems like a type error specifically related to the TaskRunner right? as in, the ThreadPoolTaskRunner type you provide (which is a valid value to provide) is not handled by the decorator? or are you saying something else
s
Unfortunately even in a basic example like here I experience it. It's like it doesnt return the Class so the documentation can be shown. @task works fine!
n
can you give some background on your linter etc? this for example is pylance strict
s
I'm running everything in PyCharm, using ruff and uv.
Plain vscode.
n
right so i'd guess this is about your interpreter somehow
s
Yeah probably. I don't think I've used any wrong namespaces in my files either.
n
disclaimer, i dont use pycharm but for what its worth i can see what it seems you were seeing. on vs-code based IDEs I use pylance which gives me all the venv-based behavior I expect but just downloading pycharm + no config: @Jake Kaplan you know pycharm, do you happen to know if I need to do something to config?
j
Unfortunately PyCharm's type inference system kind of sucks? It's a real pain point for things that might be a little non standard (and I am a big pycharm fan)
sad keanu 1
Right now they kind of just do their own thing. I wish they would re-wright it based on pyright. There may be a plugin you can add to help but not sure
🙏 1