Skip to content

Commit 65cae8d

Browse files
class parsing includes private members
1 parent 7eec71f commit 65cae8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpydoc/docscrape.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ def methods(self):
685685
name
686686
for name, func in inspect.getmembers(self._cls)
687687
if (
688-
(not name.startswith("_") or name in self.extra_public_methods)
688+
(not name.startswith("__") or name in self.extra_public_methods)
689689
and isinstance(func, Callable)
690690
and self._is_show_member(name)
691691
)

0 commit comments

Comments
 (0)