Open
Description
Expected Behavior
When using -c show_types_annotations
(found in #6), hyperlinks to external references should be added not only on the method declaration but also in the doc below (that is my understanding from https://pdoc3.github.io/pdoc/doc/pdoc/#linking-to-other-identifiers).
Actual Behavior and steps to reproduce
Example:
def example_method(a: datetime) -> int:
"""
Parameters
----------
a : `datetime.datetime`
A date.
Returns
-------
`int`
The day.
"""
return a.day
While the page renders as follows:
if using --http
. When using --html
, type hints are even completely omitted :
I guess the proper behavior would be to have the hyperlinks both in the method declaration in the first line and in the text below.
Moreover, it would likely be ideal to link to the official documentation, such as this for datetime
Additional info
- pdoc version: 0.6.3