Skip to content

Commit d893d79

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

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎astropy/sphinx/ext/automodsumm.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,9 +462,10 @@ def get_members_class(obj, typ, include_public=[],
462462
ns['exceptions'], ns['all_exceptions'] = \
463463
get_members_mod(obj, 'exception')
464464
elif doc.objtype == 'class':
465+
api_class_methods = ['__init__', '__call__']
465466
ns['members'] = get_members_class(obj, None)
466467
ns['methods'], ns['all_methods'] = \
467-
get_members_class(obj, 'method', ['__init__'])
468+
get_members_class(obj, 'method', api_class_methods)
468469
ns['attributes'], ns['all_attributes'] = \
469470
get_members_class(obj, 'attribute')
470471
ns['methods'].sort()

0 commit comments

Comments
 (0)