Open cgebbe opened 3 years ago
File called 20210409_pdoc.py
20210409_pdoc.py
class Child: def __init__(self, name: str ="child"): """ One child description Args: name: name of child """ self.name: str = name class Parent: cls_child: Child = Child("name of cls child") def __init__(self, child: Child = None): """ Parent object Args: child: child instance """ self.child: Child = child
Running pdoc3 20210409_pdoc.py --html yields
pdoc3 20210409_pdoc.py --html
Ideally, the type hints would be links to the actual class.
No links, but instead the filename is printed
Curiously, it works if I rename the file so it doesn't start with numbers:
mv 20210409_pdoc.py test_hints.py
:thinking:
Expected Behavior
File called
20210409_pdoc.py
Running
pdoc3 20210409_pdoc.py --html
yieldsIdeally, the type hints would be links to the actual class.
Actual Behavior
No links, but instead the filename is printed
Additional info