In the doc I maintain, https://google.github.io/mediapy/, the functions have many typing attributes.
These generally look great in the pdoc3 output, except that Optional[Type] is replaced by the more confusing Union[Type, NoneType].
Perhaps it would be possible to recognize this pattern and somehow change it back?