Skip to content

Commit 297cdd9

Browse files
committed
fixed unwanted inherits w/o superclass
1 parent d2060df commit 297cdd9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

gen_doc/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def extractDocStrings(filepath: str, parent: str = None, classSections: bool = F
130130
inherits += f"`{base.id}`, "
131131

132132
# If no superclasses were found, omit the inherits str
133-
if inherits == "[inherits: ":
133+
if inherits == "inherits: ":
134134
retStr += f"### {relPathFormatted}.`{className}` [class]\n"
135135

136136
# If we found a superclass, trim the extra ", " and add a closing "]" -> append

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
setup(
3636
name="GenDoc",
37-
version="0.1.0",
37+
version="0.1.2",
3838
description="Generate a Markdown Documentation file from a Python Repository with DocStrings.",
3939
url="https://github.com/http-samc/GenDoc",
4040
author="Samarth Chitgopekar",

0 commit comments

Comments
 (0)