-
Notifications
You must be signed in to change notification settings - Fork 395
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
DOC add type annotations to responsibleai package #1214
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1214 +/- ##
==========================================
+ Coverage 67.12% 67.19% +0.07%
==========================================
Files 91 91
Lines 4383 4393 +10
==========================================
+ Hits 2942 2952 +10
Misses 1441 1441
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@gaugup if I'm understanding correctly you mean I should add type annotations for every arg, not just the optional ones. Is that correct? |
1 similar comment
Type hints are for static checking of the code paths. So a variable being optional or not doesn't matter. We haven't enabled mypy in our builds otherwise you would see these unannotated function variables getting flagged. |
@gaugup Is that a yes? :-) |
oh, yes, you can add type hints to all parameters, certainly not just the optionals ones. So it's a yes. |
2 similar comments
…olbox into romanlutz/optional_api_docs
* add type annotations * fix imports * import ordering fix * more type annotations * add Any annotation for model
Description
Adding type annotations to the
responsibleai
package wherever there was anythingOptional
. Would we want these for the required args as well? Also fixing a few smaller formatting inconsistencies and typos in the process.Areas changed
npm packages changed:
Python packages changed:
Tests
Screenshots (if appropriate):
Documentation: