I am having type issues with prefect flows. Anyone...
# ask-community
b
I am having type issues with prefect flows. Anyone know what might be the root cause? Pylance reports the following: No overloads for "__call__" match the provided arguments Argument types: (str)PylancereportCallIssue
a
It’s still a bug for sure, but if you do task() does it type properly?
b
nope
Screenshot 2025-01-25 at 6.13.08 PM.png
Is this setup unlike how I would actually define tasks once I am really using this?
or does everyone just silence type errors with prefect?
a
does everyone just silence type errors
Nah — I think the quick start needs some updating to have better typing itself. Like hello_world should be name: str = “world” and so should print_hello. My suspicion is that the decorators are now strongly typed so our outdated untyped decorators are complaining.
b
ah - where are the typed decorators?
Adding type hints everywhere doesn't affect this
is submitting tasks the preferred method? This seems to quiet the errors
a
when I pip install 3.1.10 everything types just fine, but start seeing wonkiness in 3.1.11 -- good catch