1 """DEPRECATED: Function signature objects for callables. 2 3 Use the standard library version if available, as it is more up to date. 4 Fallback on backport otherwise. 5 """ 6 7 import warnings 8 warnings.warn("{} backport for Python 2 is deprecated in IPython 6, which only supports " 9 "Python 3. Import directly from standard library `inspect`".format(__name__), 10 DeprecationWarning, stacklevel=2) 11 12 from inspect import BoundArguments, Parameter, Signature, signature 13