signatures.py 474 B

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