diff --git a/IPython/core/oinspect.py b/IPython/core/oinspect.py index e7be78b..f819990 100644 --- a/IPython/core/oinspect.py +++ b/IPython/core/oinspect.py @@ -832,7 +832,7 @@ class Inspector: else: callable_obj = None - if callable_obj: + if callable_obj is not None: try: argspec = getargspec(callable_obj) except (TypeError, AttributeError):