From 21b3cae3d88b2e6443cccc4fa5b65c12c77edcc2 Mon Sep 17 00:00:00 2001 From: Hood Chatham Date: Fri, 22 Sep 2023 18:45:04 -0700 Subject: [PATCH] Fix formatting of renderers.py --- sphinx_js/renderers.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sphinx_js/renderers.py b/sphinx_js/renderers.py index b0d3338b..6ba5c168 100644 --- a/sphinx_js/renderers.py +++ b/sphinx_js/renderers.py @@ -211,7 +211,6 @@ def _return_formatter(self, return_: Return) -> tuple[list[str], str]: tail += return_.description return ["returns"], tail - def _type_param_formatter(self, tparam: TypeParam) -> tuple[list[str], str] | None: v = tparam.name if tparam.extends: @@ -219,7 +218,6 @@ def _type_param_formatter(self, tparam: TypeParam) -> tuple[list[str], str] | No heads = ["typeparam", v] return heads, tparam.description - def _param_formatter(self, param: Param) -> tuple[list[str], str] | None: """Derive heads and tail from ``@param`` blocks.""" if not param.type and not param.description: @@ -232,7 +230,6 @@ def _param_formatter(self, param: Param) -> tuple[list[str], str] | None: tail = param.description return heads, tail - def _param_type_formatter(self, param: Param) -> tuple[list[str], str] | None: """Generate types for function parameters specified in field.""" if not param.type: @@ -241,7 +238,6 @@ def _param_type_formatter(self, param: Param) -> tuple[list[str], str] | None: tail = rst.escape(param.type) return heads, tail - def _exception_formatter(self, exception: Exc) -> tuple[list[str], str]: """Derive heads and tail from ``@throws`` blocks.""" heads = ["throws"] @@ -250,7 +246,6 @@ def _exception_formatter(self, exception: Exc) -> tuple[list[str], str]: tail = exception.description return heads, tail - def _fields(self, obj: TopLevel) -> Iterator[tuple[list[str], str]]: """Return an iterable of "info fields" to be included in the directive, like params, return values, and exceptions.