Merge pull request #3623 from laloch/fix-help-def

Fix help operator not displaying definitions
This commit is contained in:
Anthony Scopatz 2020-08-04 21:12:24 -05:00 committed by GitHub
commit 40352638bf
Failed to generate hash of commit
2 changed files with 24 additions and 1 deletions

23
news/fix-help-def.rst Normal file
View 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>

View file

@ -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