pdoc maintainer here. Pleasant surprise to see us on HN again, and happy to answer any questions! :)
There's a workaround for this case (relevant issue has a link at the top), which is cool, but it uses an "internal" function to solve it, which is not.