Skip to content

Commit

Permalink
Update quickdocs.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dchassin committed Oct 1, 2024
1 parent 33b1c99 commit 39c6613
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions quickdocs.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,7 @@ def get_mode():
if callable(value):
if isinstance(value.__doc__,str):
write_html(f"""\n<h2 class="w3-container"><code><b>{name}</b>(""")
args = [f"<b>{str(a)}</b>:{re.sub(r'([A-Za-z]+)',r'<i>\1</i>',
b.__name__ if hasattr(b,"__name__") else str(b))}"
args = [f"<b>{str(a)}</b>:{re.sub(r'([A-Za-z]+)',r'<i>\1</i>',b.__name__ if hasattr(b,"__name__") else str(b))}"
for a,b in value.__annotations__.items() if a != "return"]
write_html(", ".join(args))
write_html(")")
Expand Down

0 comments on commit 39c6613

Please sign in to comment.