pdoc3 / pdoc

:snake: :arrow_right: :scroll: Auto-generate API documentation for Python projects
https://pdoc3.github.io/pdoc/
GNU Affero General Public License v3.0
1.11k stars 143 forks source link

ENH: Handle union type expressions for Google style docstrings #443

Closed ERosendo closed 3 weeks ago

ERosendo commented 3 weeks ago

This PR fixes issue #441 by tweaking the regex expression used to parse Google-style docstrings to handle union-type expressions correctly.

I also updated the test for this docstring format to ensure the fix works as expected and prevent regressions in the future.

kernc commented 3 weeks ago

Looks good, thanks!