From 02061383c748047fe962a63ba75bf4a8065e5301 2018-08-04 22:00:59 From: Matthias Bussonnier Date: 2018-08-04 22:00:59 Subject: [PATCH] Merge pull request #11254 from alyssawhitwell/11206-signature-warning [ISSUE 11206] Change signature to be imported from inspect library --- diff --git a/IPython/lib/pretty.py b/IPython/lib/pretty.py index aeaed92..90a8c78 100644 --- a/IPython/lib/pretty.py +++ b/IPython/lib/pretty.py @@ -85,12 +85,12 @@ import re import sys import types from collections import deque +from inspect import signature from io import StringIO from warnings import warn from IPython.utils.decorators import undoc from IPython.utils.py3compat import PYPY -from IPython.utils.signatures import signature __all__ = ['pretty', 'pprint', 'PrettyPrinter', 'RepresentationPrinter', 'for_type', 'for_type_by_name']