What are your thoughts on using `mypy` with Prefec...
# prefect-getting-started
j
What are your thoughts on using
mypy
with Prefect? I'm currently setting up tasks within a flow and mypy is complaining about the return values. Is there something I'm missing in configuration?
j
I have to do ignoring comment and hardcode type to get around that. Curious if there is another way. Here's example of what I do:
Copy code
x: list[str] = flow()  # type: ignore
1
j
This is exactly what I was leaning towards in the immediate term. Glad to have some external validation! I agree with you about wondering if there's a more seamless way.
🙏 1
🤞 1