Skip to content

Commit 117cbf5

Browse files
committed
feat: see methods from the bound function
Signed-off-by: nstarman <[email protected]>
1 parent 9139641 commit 117cbf5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

plum/function.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,3 +515,8 @@ def wrapped_method(*args, **kw_args):
515515
# extended, so unwrapping is likely never desired.
516516

517517
return wrapped_method
518+
519+
@property
520+
def methods(self) -> List[Signature]:
521+
"""list[:class:`.signature.Signature`]: All available methods."""
522+
return self._f.methods

0 commit comments

Comments
 (0)