From 8138151759c3e45d4d9f27b068592a137e5b0b4d Mon Sep 17 00:00:00 2001 From: Hood Chatham Date: Sat, 23 Sep 2023 14:59:16 -0700 Subject: [PATCH] Cleanup --- sphinx_js/typedoc.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sphinx_js/typedoc.py b/sphinx_js/typedoc.py index c79bdecf..b6be16c8 100644 --- a/sphinx_js/typedoc.py +++ b/sphinx_js/typedoc.py @@ -410,9 +410,7 @@ def to_ir(self, converter: Converter) -> tuple[ir.Attribute, Sequence["Node"]]: # There's no signature to speak of for a getter: only a return type. type = self.getSignature.type else: - # ES6 says setters have exactly 1 param. I'm not sure if they - # can have multiple signatures, though. - assert isinstance(self.setSignature, Signature) + # ES6 says setters have exactly 1 param. type = self.setSignature.parameters[0].type res = ir.Attribute(