Try to ignore imported functions, classes in tools.gendoc

This commit is contained in:
K. Lange 2021-03-25 15:25:02 +09:00
parent 9659be93ba
commit 555100c3c9

View File

@ -261,8 +261,12 @@ def processModules(modules):
if not member.startswith('_'):
let obj = getattr(thing,member)
if isinstance(obj, function):
if hasattr(obj,'__file__') and obj.__file__ != thing.__file__:
continue
functions.append(Pair(member,obj))
else if isinstance(obj, type):
if hasattr(obj,'__module__') and obj.__module__ != name:
continue
if isExceptionType(obj):
exceptions.append(Pair(member,obj))
else: