Skip to content

Commit

Permalink
BUG: Strengthen signature detection for pybind generated modules
Browse files Browse the repository at this point in the history
  • Loading branch information
wabscale authored and kernc committed Mar 11, 2024
1 parent 641e7a8 commit 96e9155
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdoc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 96e9155

Please sign in to comment.