Skip to content
This repository has been archived by the owner on Feb 28, 2022. It is now read-only.

Commit

Permalink
Fix Bug: empty inheritance should be removed (#57)
Browse files Browse the repository at this point in the history
* Fix Bug: empty inheritance should be removed

* Update setup.py
  • Loading branch information
yannanwang1 authored and bianliu1013 committed Jul 20, 2017
1 parent c500ebe commit e6f0094
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docfx_yaml/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,8 @@ def convert_module_to_package_if_needed(obj):
python_sdk_name = obj['uid'].split('.')[0]
obj['inheritance'] = [n for n in obj['inheritance'] if not n['type'].startswith(python_sdk_name) or
n['type'] in app.env.docfx_info_uid_types]
if not obj['inheritance']:
obj.pop('inheritance')

except NameError:
pass
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

setup(
name='sphinx-docfx-yaml',
version='1.2.16',
version='1.2.17',
author='Eric Holscher',
author_email='eric@ericholscher.com',
url='https://github.com/ericholscher/sphinx-docfx-yaml',
Expand Down

0 comments on commit e6f0094

Please sign in to comment.