Tech News
← Back to articles

Pdoc – Generate API Documentation for Python Projects

read original related products more articles

demo.py

""" A small `pdoc` example. """ class Dog : """🐕""" name : str """The name of our dog.""" friends : list [ "Dog" ] """The friends of our dog.""" def __init__ ( self , name : str ): """Make a Dog without any friends (yet).""" self . name = name self . friends = [] def bark ( self , loud : bool = True ): """*woof*"""