From a5361982a47d54504e56b7dcf1d4979d3f7c722f Mon Sep 17 00:00:00 2001 From: zhangchunle Date: Wed, 13 May 2020 21:15:03 +0800 Subject: [PATCH] modify generate api.spec (#24503) --- tools/print_signatures.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/print_signatures.py b/tools/print_signatures.py index efb925a5a9..6818c2550f 100644 --- a/tools/print_signatures.py +++ b/tools/print_signatures.py @@ -105,6 +105,8 @@ def visit_member(parent_name, member): if hasattr(value, '__name__') and (not name.startswith("_") or name == "__init__"): visit_member(cur_name, value) + elif inspect.ismethoddescriptor(member): + return elif callable(member): queue_dict(member, cur_name) elif inspect.isgetsetdescriptor(member): -- GitLab