未验证 提交 a5361982 编写于 作者: Z zhangchunle 提交者: GitHub

modify generate api.spec (#24503)

上级 f1c57d64
...@@ -105,6 +105,8 @@ def visit_member(parent_name, member): ...@@ -105,6 +105,8 @@ def visit_member(parent_name, member):
if hasattr(value, '__name__') and (not name.startswith("_") or if hasattr(value, '__name__') and (not name.startswith("_") or
name == "__init__"): name == "__init__"):
visit_member(cur_name, value) visit_member(cur_name, value)
elif inspect.ismethoddescriptor(member):
return
elif callable(member): elif callable(member):
queue_dict(member, cur_name) queue_dict(member, cur_name)
elif inspect.isgetsetdescriptor(member): elif inspect.isgetsetdescriptor(member):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册