Skip to content

Commit

Permalink
refactoring 5
Browse files Browse the repository at this point in the history
  • Loading branch information
hpohekar committed Apr 29, 2024
1 parent 5f47ef8 commit 689895a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/rstgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def _get_attribute_classes(menu: type):
attribute_classes = []
attributes_dict = dict(vars(menu))
for attr_name, attr_value in attributes_dict.items():
if not attr_name.startswith("__"):
if not (attr_name.startswith("__") or attr_name.startswith("_")):
attribute_classes.append(attributes_dict[attr_name])
return attribute_classes

Expand Down

0 comments on commit 689895a

Please sign in to comment.