signatures.py
11 lines
| 332 B
| text/x-python
|
PythonLexer
Thomas Kluyver
|
r15600 | """Function signature objects for callables. | ||
Thomas Kluyver
|
r15137 | |||
Antony Lee
|
r21663 | Use the standard library version if available, as it is more up to date. | ||
Fallback on backport otherwise. | ||||
Thomas Kluyver
|
r15137 | """ | ||
Matthias Bussonnier
|
r21045 | |||
Antony Lee
|
r21663 | try: | ||
from inspect import BoundArguments, Parameter, Signature, signature | ||||
except ImportError: | ||||
from ._signatures import BoundArguments, Parameter, Signature, signature | ||||