signatures.py 332 B

1234567891011
  1. """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. try:
  6. from inspect import BoundArguments, Parameter, Signature, signature
  7. except ImportError:
  8. from ._signatures import BoundArguments, Parameter, Signature, signature