Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upSupport PEP 484 type hints #6
Comments
This comment has been minimized.
This comment has been minimized.
|
Would you be interested in doing a pull request for that? You would need to
|
nbraud
added a commit
to nbraud/pdoc
that referenced
this issue
Jan 23, 2019
kernc
added
the
enhancement
label
Jan 27, 2019
This comment has been minimized.
This comment has been minimized.
|
@kernc Sorry, I had entirely missed you replied here. Yes, obviously I'm pretty interested in writing the code for this ^.^ |
This comment has been minimized.
This comment has been minimized.
omtinez
commented
Apr 7, 2019
|
@nbraud do you plan on submitting a PR with your commit? |
This comment has been minimized.
This comment has been minimized.
kernc
closed this
in
5df06cd
Apr 21, 2019
kernc
reopened this
Apr 22, 2019
This comment has been minimized.
This comment has been minimized.
|
This is not done. Text template doesn't look into config.mako nor does it print types by default. I'll see what I can do about that and about hyperlinking documented types in HTML output. |
kernc
added a commit
that referenced
this issue
Apr 24, 2019
kernc
closed this
in
4faccce
Apr 24, 2019
This comment has been minimized.
This comment has been minimized.
|
Hyperlinked types testable with: pdoc --html -c show_type_annotations=True your_module |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nbraud commentedJan 22, 2019
Expected Behavior
When generating doc for a package that is annotated with PEP 484 type hints, I would expect the type hints to be present in the documentation.
For example, the following definition
results in the type hints being available in the REPL's
help():and it should well as be present in the pdoc-generated documents:
Actual Behavior
pdocignores the type-hints:Type hints document the expected types of parameters and return values. As such, they convey a lot of information for the documentation's user, when present.
See PEP 484 for a discussion of type hints.
Steps to Reproduce
Generate documentation for a module that uses type hints
Additional info