-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Enable no-untyped-def
in mypy
#4399
Comments
Hi @justinchuby , |
@jcwchen , I would like to work on this enhancement, could you kindly guide me through it . |
Thank you for your interest! Please add Line 1 in 2c5da6f
and run |
#self-assign |
I will create the PR by tomorrow morning. |
Created PR #5272 |
@jcwchen I created the PR and "enforce styles" is failing, i checked the error, the errors are because there are a lot of functions which dont specify a type definition. The solution it shows is to add "# type: ignore[no-untyped-def]" at top of each of the files. Since there are so many files, i was wondering if this is the way to proceed or there is an efficient method. Kindly advise. |
I am not aware any efficient method to apply it and thus you might need to add the type annotation one by one. Adding annotations is preferred than adding ignore at the top unless there is a strong reason not to have types. There are quite many errors around no-untyped-def and it needs huge effort to apply it entirely... This work can be broken down into several PRs if needed. Thanks! |
Use no-untyped-def to encourage typing annotations.
The text was updated successfully, but these errors were encountered: