From 040471751fd84433a9c5b225565fab79b423bb31 Mon Sep 17 00:00:00 2001 From: Hood Chatham Date: Tue, 26 Sep 2023 16:57:29 -0700 Subject: [PATCH] Add forgotten type annotation --- sphinx_js/typedoc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx_js/typedoc.py b/sphinx_js/typedoc.py index e6c5621e..44601b23 100644 --- a/sphinx_js/typedoc.py +++ b/sphinx_js/typedoc.py @@ -842,7 +842,7 @@ def _destructure_params(self, converter: Converter) -> list[Param]: assert isinstance(tag, ir.DescriptionText) destructure_targets.extend(tag.text.split(" ")) - def should_destructure(p): + def should_destructure(p: Param) -> bool: if not isinstance(p.type, ReflectionType): return False if p.name in destructure_targets: