Skip to content

Commit

Permalink
Merge pull request xonsh#3623 from laloch/fix-help-def
Browse files Browse the repository at this point in the history
Fix help operator not displaying definitions
  • Loading branch information
scopatz committed Aug 5, 2020
2 parents a816084 + 3e027ae commit 4035263
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions news/fix-help-def.rst
@@ -0,0 +1,23 @@
**Added:**

* <news item>

**Changed:**

* <news item>

**Deprecated:**

* <news item>

**Removed:**

* <news item>

**Fixed:**

* Fixed help operator not displaying definition for callables.

**Security:**

* <news item>
2 changes: 1 addition & 1 deletion xonsh/inspectors.py
Expand Up @@ -356,7 +356,7 @@ def _getdef(self, obj, oname=""):
exception is suppressed.
"""
try:
hdef = oname + inspect.signature(*getargspec(obj))
hdef = oname + str(inspect.signature(obj))
return cast_unicode(hdef)
except: # pylint:disable=bare-except
return None
Expand Down

0 comments on commit 4035263

Please sign in to comment.