Try to ignore imported functions, classes in tools.gendoc
This commit is contained in:
parent
9659be93ba
commit
555100c3c9
@ -261,8 +261,12 @@ def processModules(modules):
|
|||||||
if not member.startswith('_'):
|
if not member.startswith('_'):
|
||||||
let obj = getattr(thing,member)
|
let obj = getattr(thing,member)
|
||||||
if isinstance(obj, function):
|
if isinstance(obj, function):
|
||||||
|
if hasattr(obj,'__file__') and obj.__file__ != thing.__file__:
|
||||||
|
continue
|
||||||
functions.append(Pair(member,obj))
|
functions.append(Pair(member,obj))
|
||||||
else if isinstance(obj, type):
|
else if isinstance(obj, type):
|
||||||
|
if hasattr(obj,'__module__') and obj.__module__ != name:
|
||||||
|
continue
|
||||||
if isExceptionType(obj):
|
if isExceptionType(obj):
|
||||||
exceptions.append(Pair(member,obj))
|
exceptions.append(Pair(member,obj))
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user