pdoc icon indicating copy to clipboard operation
pdoc copied to clipboard

enable showing private methods/variables

Open mkinney opened this issue 3 years ago • 2 comments

Expected Behavior

Would like to see private methods/variables in the documentation

Actual Behavior

Methods and variables that begin with "_" are excluded.

Steps to Reproduce

  1. Generate docs that have a private method.
  2. See that the private method does not show up

Additional info

  • pdoc version: (installed from master) % pdoc --version pdoc 0.10.0

If I change this line: https://github.com/mkinney/pdoc/blob/master/pdoc/init.py#L409

to this:

return not ident_name.startswith("__")

It does what I'd like to see.

Would it make sense to add a command line arg (or configuration setting) that would enable this?

mkinney avatar Dec 29 '21 06:12 mkinney

bump

luzpaz avatar Jul 26 '23 01:07 luzpaz

No response ?

luzpaz avatar Nov 19 '23 13:11 luzpaz