From 555100c3c9e573605d527da06a00cd5a46224188 Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Thu, 25 Mar 2021 15:25:02 +0900 Subject: [PATCH] Try to ignore imported functions, classes in tools.gendoc --- tools/gendoc.krk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/gendoc.krk b/tools/gendoc.krk index 7f3726d..d498c06 100755 --- a/tools/gendoc.krk +++ b/tools/gendoc.krk @@ -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: