Skip to content

Commit

Permalink
Revert accidental change
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodmane committed May 6, 2024
1 parent 98ad15b commit ed6bc1d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_typedoc_analysis/test_typedoc_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from sphinx_js.ir import (
Attribute,
Class,
Description,
DescriptionCode,
DescriptionText,
Function,
Expand All @@ -31,12 +30,12 @@ def join_type(t: Type) -> str:
return "".join(e.name if isinstance(e, TypeXRef) else e for e in t)


def join_description(t: Description) -> str:
def join_descri(t: Type) -> str:
if not t:
return ""
if isinstance(t, str):
return t
return "".join(e.code if isinstance(e, DescriptionCode) else e.text for e in t)
return "".join(e.name if isinstance(e, TypeXRef) else e for e in t)


class TestPathSegments(TypeDocTestCase):
Expand Down

0 comments on commit ed6bc1d

Please sign in to comment.