Skip to content

Commit

Permalink
Add forgotten type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodmane committed Sep 26, 2023
1 parent c8ac5cf commit 0404717
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinx_js/typedoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0404717

Please sign in to comment.