Skip to content

Commit 7799d7a

Browse files
committed
Remove builtin Box classes from docs
1 parent 3e1586e commit 7799d7a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

mathics/doc/doc.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
88
See also `../test.py` for a command-line interface that calls this.
99
10+
FIXME: Note this code is duplicated in Django
1011
This code should be replaced by sphinx and autodoc.
1112
"""
1213

@@ -819,7 +820,7 @@ def __init__(self):
819820
if module.__file__.endswith("__init__.py"):
820821
section_names = get_submodule_names(module)
821822
else:
822-
section_names = builtins
823+
section_names = [builtin for builtin in builtins if not builtin.__class__.__name__.endswith("Box")]
823824

824825
for instance in section_names:
825826
installed = True

0 commit comments

Comments
 (0)