-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve task type hint #1711
Improve task type hint #1711
Conversation
Signed-off-by: Kevin Su <[email protected]>
Interesting |
Isn't this essentially voiding any guarantee that tools like mypy or pyright could give users? |
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
mypy still complains about tasks invoked in workflows:
|
Signed-off-by: Kevin Su <[email protected]>
Nevermind. I tested this by producing a wheel and installing it in a separate venv, but probably messed up on the way. Sorry for the false alarm! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is awesome!
Should we also add a py.typed
?
Related to #1631 |
I'm not sure if we have fixed all the mypy issues. Will do more testing for mypy and add it. |
there's at least one case where this is going to break badly: |
TL;DR
Before:
After:
Type
Are all requirements met?
Complete description
^^^
Tracking Issue
NA
Follow-up issue
NA