Skip to content

Commit

Permalink
MAINT Separate InstrinsicType into a separate class from ReferenceType
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodmane committed Sep 23, 2023
1 parent 21b3cae commit cad34dd
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion sphinx_js/typedoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -946,8 +946,16 @@ def _render_name_root(self, converter: Converter) -> str:
return self.operator + " " + self.target.render_name(converter)


class IntrinsicType(TypeBase):
type: Literal["intrinsic"]
name: str

def _render_name_root(self, converter: Converter) -> str:
return self.name


class ReferenceType(TypeBase):
type: Literal["reference", "intrinsic"]
type: Literal["reference"]
name: str
id: int | None
target: Any
Expand Down Expand Up @@ -1022,6 +1030,7 @@ def _render_name_root(self, converter: Converter) -> str:
| LiteralType
| OtherType
| OperatorType
| IntrinsicType
| ReferenceType
| ReflectionType
| TupleType
Expand Down

0 comments on commit cad34dd

Please sign in to comment.