Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAINT Separate InstrinsicType class from ReferenceType #50

Merged
merged 1 commit into from
Sep 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading