https://prefect.io logo
Title
t

Tim Galvin

01/17/2023, 1:29 AM
Hi all -- is there a type linter that works well with prefect, specifically when
.submit
and
.map
methods are used?
mypy
is getting a little confused, I think when I have to resort to using the
wait_for=
argument in this methods. Does anyone have a preferred or generally awesome linter set up that works well with prefect that they can share?
z

Zanie

01/17/2023, 4:15 PM
Unfortunately adding keyword arguments to your function signature (i.e.
wait_for
is not supported by Python’s typing tooling.
I believe we could add a plugin for mypy to be happy, but pyright doesn’t support plugins.
t

Tim Galvin

01/18/2023, 1:11 AM
Gotcha. Thanks for the response 🙂 I am not sure what the best thing to do otherwuse other than adding some
# ignore
for the moments where I pass arguments. If you have any suggests please do share 🙂