Skip to content

Commit

Permalink
Fix "Failed to get a function signature" sphinx warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
joaander committed Jun 19, 2024
1 parent dc2f910 commit 7092375
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hoomd/custom/custom_operation.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,12 @@ def __init__(cls, name, base, dct): # noqa: N805
return
extra_methods = dct.get("_wrap_methods", [])
for name in itertools.chain(action_cls._export_dict, extra_methods):
method = getattr(action_cls, name)
if isinstance(method, property):
method = method.fget

wrapped_method = _AbstractLoggableWithPassthrough._wrap_loggable(
name, getattr(action_cls, name))
name, method)
setattr(cls, name, wrapped_method)
cls._export_dict = action_cls._export_dict
_AbstractLoggable.__init__(cls, name, base, dct)
Expand Down

0 comments on commit 7092375

Please sign in to comment.