Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get pulbic api list by __all__ of module #4690

Merged
merged 3 commits into from
Apr 27, 2022
Merged

get pulbic api list by __all__ of module #4690

merged 3 commits into from
Apr 27, 2022

Conversation

Shaun2016
Copy link
Contributor

背景:已有获取公开API的方法,依赖于人工维护的module list,当有新module下的API merge后,需要人工手动将新module加入到module list中,否则无法获取公开API,使数据存在一定滞后性

解决方案:遍历所有的module,如果module有__all__属性,且__all__的值不为空,则该module为公开module,其下的API为公开API

修改点: api/gen_doc.py

@paddle-bot-old
Copy link

Thanks for your contribution!

@dingjiaweiww dingjiaweiww merged commit a38aa37 into PaddlePaddle:develop Apr 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants