Skip to content

Commit dc498c0

Browse files
committed
Add __call__ to Sphinx API docs (fixes astropy#1817)
1 parent 7038b15 commit dc498c0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎astropy/sphinx/ext/automodsumm.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,8 @@ def get_members_class(obj, typ, include_public=[],
465465
ns['members'] = get_members_class(obj, None)
466466
ns['methods'], ns['all_methods'] = \
467467
get_members_class(obj, 'method', ['__init__'])
468+
ns['methods'], ns['all_methods'] = \
469+
get_members_class(obj, 'method', ['__call__'])
468470
ns['attributes'], ns['all_attributes'] = \
469471
get_members_class(obj, 'attribute')
470472
ns['methods'].sort()

0 commit comments

Comments
 (0)