mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
Merge pull request #3623 from laloch/fix-help-def
Fix help operator not displaying definitions
This commit is contained in:
commit
40352638bf
2 changed files with 24 additions and 1 deletions
23
news/fix-help-def.rst
Normal file
23
news/fix-help-def.rst
Normal file
|
@ -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>
|
|
@ -356,7 +356,7 @@ class Inspector(object):
|
|||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue