-
Notifications
You must be signed in to change notification settings - Fork 529
Autodoc typehints #830
Autodoc typehints #830
Conversation
2464b49
to
bb5fcdb
Compare
Job PR-830/4 is complete. |
@dmlc/gluon-nlp-team please take a look at above example and make your opinion known. |
I think
|
Thanks @JulianSlzr for your thoughts.
|
Codecov Report
@@ Coverage Diff @@
## master #830 +/- ##
==========================================
- Coverage 90.18% 90.17% -0.01%
==========================================
Files 66 66
Lines 6345 6344 -1
==========================================
- Hits 5722 5721 -1
Misses 623 623
|
Job PR-830/5 is complete. |
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.
Nice! I guess the next step is to apply these changes to all other API docs?
Job PR-830/6 is complete. |
Job PR-830/7 is complete. |
Description
This adds sphinx autodoc based on Python 3 typehints.
Impact: Auto-generate (missing) type annotations in the documentation based on machine-readable typehints. The auto-generated type annotations look as follows: http://gluon-nlp-staging.s3-accelerate.dualstack.amazonaws.com/PR-830/4/api/modules/vocab.html#gluonnlp.Vocab