From 96e915575d0a9f611d254d3b853f38c0ca59f32f Mon Sep 17 00:00:00 2001 From: John McCann Cunniff Jr Date: Fri, 22 Dec 2023 17:09:25 -0500 Subject: [PATCH] BUG: Strengthen signature detection for pybind generated modules --- pdoc/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdoc/__init__.py b/pdoc/__init__.py index 4e367378..0f4e2c67 100644 --- a/pdoc/__init__.py +++ b/pdoc/__init__.py @@ -1570,7 +1570,7 @@ def _signature_from_string(self): try: exec(f'def {string}: pass', _globals, _locals) - except SyntaxError: + except Exception: continue signature = inspect.signature(_locals[self.name]) if cleanup_docstring and len(strings) == 1: